Class: GustoEmbedded::Models::Shared::ContractorBankAccount
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::ContractorBankAccount
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/contractor_bank_account.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, contractor_uuid:, account_type:, name:, routing_number:, hidden_account_number:) ⇒ ContractorBankAccount
constructor
A new instance of ContractorBankAccount.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, contractor_uuid:, account_type:, name:, routing_number:, hidden_account_number:) ⇒ ContractorBankAccount
Returns a new instance of ContractorBankAccount.
29 30 31 32 33 34 35 36 |
# File 'lib/gusto_embedded/models/shared/contractor_bank_account.rb', line 29 def initialize(uuid:, contractor_uuid:, account_type:, name:, routing_number:, hidden_account_number:) @uuid = uuid @contractor_uuid = contractor_uuid @account_type = account_type @name = name @routing_number = routing_number @hidden_account_number = hidden_account_number end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/gusto_embedded/models/shared/contractor_bank_account.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @contractor_uuid == other.contractor_uuid return false unless @account_type == other.account_type return false unless @name == other.name return false unless @routing_number == other.routing_number return false unless @hidden_account_number == other.hidden_account_number true end |