Class: GustoEmbedded::Models::Shared::ActiveCompanies

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(company_uuid: nil, active_employees: nil, active_contractors: nil, initial_invoice_period: nil) ⇒ ActiveCompanies

Returns a new instance of ActiveCompanies.



25
26
27
28
29
30
# File 'lib/gusto_embedded/models/shared/active_companies.rb', line 25

def initialize(company_uuid: nil, active_employees: nil, active_contractors: nil, initial_invoice_period: nil)
  @company_uuid = company_uuid
  @active_employees = active_employees
  @active_contractors = active_contractors
  @initial_invoice_period = initial_invoice_period
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/gusto_embedded/models/shared/active_companies.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @company_uuid == other.company_uuid
  return false unless @active_employees == other.active_employees
  return false unless @active_contractors == other.active_contractors
  return false unless @initial_invoice_period == other.initial_invoice_period
  true
end