Class: GustoEmbedded::Models::Operations::Batch
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Operations::Batch
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/operations/batch.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(entity_type:, person:, home_address: nil, work_address: nil, job: nil, department: nil, compensation: nil, bank_accounts: nil) ⇒ Batch
constructor
A new instance of Batch.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(entity_type:, person:, home_address: nil, work_address: nil, job: nil, department: nil, compensation: nil, bank_accounts: nil) ⇒ Batch
Returns a new instance of Batch.
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/gusto_embedded/models/operations/batch.rb', line 34 def initialize(entity_type:, person:, home_address: nil, work_address: nil, job: nil, department: nil, compensation: nil, bank_accounts: nil) @entity_type = entity_type @person = person @home_address = home_address @work_address = work_address @job = job @department = department @compensation = compensation @bank_accounts = bank_accounts end |
Instance Method Details
#==(other) ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/gusto_embedded/models/operations/batch.rb', line 46 def ==(other) return false unless other.is_a? self.class return false unless @entity_type == other.entity_type return false unless @person == other.person return false unless @home_address == other.home_address return false unless @work_address == other.work_address return false unless @job == other.job return false unless @department == other.department return false unless @compensation == other.compensation return false unless @bank_accounts == other.bank_accounts true end |