Class: GustoEmbedded::Models::Shared::EmployeeBankAccount

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/employee_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:, employee_uuid: nil, account_type: nil, name: nil, routing_number: nil, hidden_account_number: nil) ⇒ EmployeeBankAccount

Returns a new instance of EmployeeBankAccount.



29
30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/shared/employee_bank_account.rb', line 29

def initialize(uuid:, employee_uuid: nil, account_type: nil, name: nil, routing_number: nil, hidden_account_number: nil)
  @uuid = uuid
  @employee_uuid = employee_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/employee_bank_account.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @employee_uuid == other.employee_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