Class: ScalarGalaxy::Models::Credentials

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/galaxy-ruby/models/credentials.rb,
sig/galaxy-ruby/models/credentials.rbs

Direct Known Subclasses

AuthenticationCreateTokenParams

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(email:, password:) ⇒ Credentials

Credentials to authenticate a user

Parameters:

  • email (String)
  • password (String)
  • email: (String)
  • password: (String)


# File 'lib/galaxy-ruby/models/credentials.rb', line 18

Instance Attribute Details

#emailString

Parameters:

  • value (String)

Returns:

  • (String)


9
# File 'lib/galaxy-ruby/models/credentials.rb', line 9

required :email, String

#passwordString

Returns the value of attribute password.

Returns:

  • (String)


8
9
10
# File 'sig/galaxy-ruby/models/credentials.rbs', line 8

def password
  @password
end

Instance Method Details

#to_hash{ email: String, password: String }

Returns:

  • ({ email: String, password: String })


12
# File 'sig/galaxy-ruby/models/credentials.rbs', line 12

def to_hash: -> { email: String, password: String }