Class: GustoEmbedded::Models::Shared::Company
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::Company
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/company.rb
Overview
The representation of a company in Gusto.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, ein: nil, contractor_only: nil, is_suspended: nil, company_status: nil, name: nil, slug: nil, is_partner_managed: nil, is_high_risk_business: nil, is_marijuana_business: nil, locations: nil, compensations: nil, primary_payroll_admin: nil, entity_type: nil, tier: nil, trade_name: nil, pay_schedule_type: nil, join_date: nil, funding_type: nil, primary_signatory: nil) ⇒ Company
constructor
A new instance of Company.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, ein: nil, contractor_only: nil, is_suspended: nil, company_status: nil, name: nil, slug: nil, is_partner_managed: nil, is_high_risk_business: nil, is_marijuana_business: nil, locations: nil, compensations: nil, primary_payroll_admin: nil, entity_type: nil, tier: nil, trade_name: nil, pay_schedule_type: nil, join_date: nil, funding_type: nil, primary_signatory: nil) ⇒ Company
Returns a new instance of Company.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/gusto_embedded/models/shared/company.rb', line 57 def initialize(uuid:, ein: nil, contractor_only: nil, is_suspended: nil, company_status: nil, name: nil, slug: nil, is_partner_managed: nil, is_high_risk_business: nil, is_marijuana_business: nil, locations: nil, compensations: nil, primary_payroll_admin: nil, entity_type: nil, tier: nil, trade_name: nil, pay_schedule_type: nil, join_date: nil, funding_type: nil, primary_signatory: nil) @uuid = uuid @ein = ein @contractor_only = contractor_only @is_suspended = is_suspended @company_status = company_status @name = name @slug = slug @is_partner_managed = is_partner_managed @is_high_risk_business = is_high_risk_business @is_marijuana_business = is_marijuana_business @locations = locations @compensations = compensations @primary_payroll_admin = primary_payroll_admin @entity_type = entity_type @tier = tier @trade_name = trade_name @pay_schedule_type = pay_schedule_type @join_date = join_date @funding_type = funding_type @primary_signatory = primary_signatory end |
Instance Method Details
#==(other) ⇒ Object
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/gusto_embedded/models/shared/company.rb', line 81 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @ein == other.ein return false unless @contractor_only == other.contractor_only return false unless @is_suspended == other.is_suspended return false unless @company_status == other.company_status return false unless @name == other.name return false unless @slug == other.slug return false unless @is_partner_managed == other.is_partner_managed return false unless @is_high_risk_business == other.is_high_risk_business return false unless @is_marijuana_business == other.is_marijuana_business return false unless @locations == other.locations return false unless @compensations == other.compensations return false unless @primary_payroll_admin == other.primary_payroll_admin return false unless @entity_type == other.entity_type return false unless @tier == other.tier return false unless @trade_name == other.trade_name return false unless @pay_schedule_type == other.pay_schedule_type return false unless @join_date == other.join_date return false unless @funding_type == other.funding_type return false unless @primary_signatory == other.primary_signatory true end |