Class: Moov::Models::Components::Account
- Inherits:
-
Object
- Object
- Moov::Models::Components::Account
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/account.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(account_id:, mode:, account_type:, display_name:, profile:, verification:, created_on:, updated_on:, metadata: nil, terms_of_service: nil, capabilities: nil, foreign_id: nil, customer_support: nil, settings: nil, disconnected_on: nil) ⇒ Account
constructor
A new instance of Account.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(account_id:, mode:, account_type:, display_name:, profile:, verification:, created_on:, updated_on:, metadata: nil, terms_of_service: nil, capabilities: nil, foreign_id: nil, customer_support: nil, settings: nil, disconnected_on: nil) ⇒ Account
Returns a new instance of Account.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/moov/models/components/account.rb', line 49 def initialize(account_id:, mode:, account_type:, display_name:, profile:, verification:, created_on:, updated_on:, metadata: nil, terms_of_service: nil, capabilities: nil, foreign_id: nil, customer_support: nil, settings: nil, disconnected_on: nil) @account_id = account_id @mode = mode @account_type = account_type @display_name = display_name @profile = profile @verification = verification @created_on = created_on @updated_on = updated_on @metadata = @terms_of_service = terms_of_service @capabilities = capabilities @foreign_id = foreign_id @customer_support = customer_support @settings = settings @disconnected_on = disconnected_on end |
Instance Method Details
#==(other) ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/moov/models/components/account.rb', line 68 def ==(other) return false unless other.is_a? self.class return false unless @account_id == other.account_id return false unless @mode == other.mode return false unless @account_type == other.account_type return false unless @display_name == other.display_name return false unless @profile == other.profile return false unless @verification == other.verification return false unless @created_on == other.created_on return false unless @updated_on == other.updated_on return false unless @metadata == other. return false unless @terms_of_service == other.terms_of_service return false unless @capabilities == other.capabilities 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 @disconnected_on == other.disconnected_on true end |