Class: GustoEmbedded::Models::Operations::BankAccounts
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Operations::BankAccounts
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/operations/bank_accounts.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(account_type:, routing_number:, account_number:, type:, split_by:, name: nil, split_amount: nil) ⇒ BankAccounts
constructor
A new instance of BankAccounts.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(account_type:, routing_number:, account_number:, type:, split_by:, name: nil, split_amount: nil) ⇒ BankAccounts
Returns a new instance of BankAccounts.
31 32 33 34 35 36 37 38 39 |
# File 'lib/gusto_embedded/models/operations/bank_accounts.rb', line 31 def initialize(account_type:, routing_number:, account_number:, type:, split_by:, name: nil, split_amount: nil) @account_type = account_type @routing_number = routing_number @account_number = account_number @type = type @split_by = split_by @name = name @split_amount = split_amount end |
Instance Method Details
#==(other) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/gusto_embedded/models/operations/bank_accounts.rb', line 42 def ==(other) return false unless other.is_a? self.class return false unless @account_type == other.account_type return false unless @routing_number == other.routing_number return false unless @account_number == other.account_number return false unless @type == other.type return false unless @split_by == other.split_by return false unless @name == other.name return false unless @split_amount == other.split_amount true end |