Class: Moov::Models::Components::CreateAccount
- Inherits:
-
Object
- Object
- Moov::Models::Components::CreateAccount
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/createaccount.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(account_type:, profile:, metadata: nil, terms_of_service: nil, foreign_id: nil, customer_support: nil, settings: nil, capabilities: nil, mode: nil) ⇒ CreateAccount
constructor
A new instance of CreateAccount.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(account_type:, profile:, metadata: nil, terms_of_service: nil, foreign_id: nil, customer_support: nil, settings: nil, capabilities: nil, mode: nil) ⇒ CreateAccount
37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/moov/models/components/createaccount.rb', line 37 def initialize(account_type:, profile:, metadata: nil, terms_of_service: nil, foreign_id: nil, customer_support: nil, settings: nil, capabilities: nil, mode: nil) @account_type = account_type @profile = profile = @terms_of_service = terms_of_service @foreign_id = foreign_id @customer_support = customer_support @settings = settings @capabilities = capabilities @mode = mode end |
Instance Method Details
#==(other) ⇒ Object
50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/moov/models/components/createaccount.rb', line 50 def ==(other) return false unless other.is_a? self.class return false unless @account_type == other.account_type return false unless @profile == other.profile return false unless == other. return false unless @terms_of_service == other.terms_of_service return false unless @foreign_id == other.foreign_id return false unless @customer_support == other.customer_support return false unless @settings == other.settings return false unless @capabilities == other.capabilities return false unless @mode == other.mode true end |