Class: GustoEmbedded::Models::Shared::PartnerManagedCompanyCreateRequestCompany

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(name:, trade_name: nil, ein: nil, contractor_only: nil) ⇒ PartnerManagedCompanyCreateRequestCompany

Returns a new instance of PartnerManagedCompanyCreateRequestCompany.



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

def initialize(name:, trade_name: nil, ein: nil, contractor_only: nil)
  @name = name
  @trade_name = trade_name
  @ein = ein
  @contractor_only = contractor_only
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @name == other.name
  return false unless @trade_name == other.trade_name
  return false unless @ein == other.ein
  return false unless @contractor_only == other.contractor_only
  true
end