Class: GustoEmbedded::Models::Shared::ContractorBankAccount

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/contractor_bank_account.rb

Instance Method Summary collapse

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 = 
  @name = name
  @routing_number = routing_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.
  return false unless @name == other.name
  return false unless @routing_number == other.routing_number
  return false unless @hidden_account_number == other.
  true
end