Class: GustoEmbedded::Models::Shared::CompanySuspension
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::CompanySuspension
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/company_suspension.rb
Overview
Record representing the suspension of a company’s Gusto account.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid: nil, company_uuid: nil, effective_date: nil, reason: nil, reconcile_tax_method: nil, file_quarterly_forms: nil, file_yearly_forms: nil, tax_refunds: nil, leaving_for: nil, comments: nil) ⇒ CompanySuspension
constructor
A new instance of CompanySuspension.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid: nil, company_uuid: nil, effective_date: nil, reason: nil, reconcile_tax_method: nil, file_quarterly_forms: nil, file_yearly_forms: nil, tax_refunds: nil, leaving_for: nil, comments: nil) ⇒ CompanySuspension
Returns a new instance of CompanySuspension.
40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/gusto_embedded/models/shared/company_suspension.rb', line 40 def initialize(uuid: nil, company_uuid: nil, effective_date: nil, reason: nil, reconcile_tax_method: nil, file_quarterly_forms: nil, file_yearly_forms: nil, tax_refunds: nil, leaving_for: nil, comments: nil) @uuid = uuid @company_uuid = company_uuid @effective_date = effective_date @reason = reason @reconcile_tax_method = reconcile_tax_method @file_quarterly_forms = file_quarterly_forms @file_yearly_forms = file_yearly_forms @tax_refunds = tax_refunds @leaving_for = leaving_for @comments = comments end |
Instance Method Details
#==(other) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/gusto_embedded/models/shared/company_suspension.rb', line 54 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @company_uuid == other.company_uuid return false unless @effective_date == other.effective_date return false unless @reason == other.reason return false unless @reconcile_tax_method == other.reconcile_tax_method return false unless @file_quarterly_forms == other.file_quarterly_forms return false unless @file_yearly_forms == other.file_yearly_forms return false unless @tax_refunds == other.tax_refunds return false unless @leaving_for == other.leaving_for return false unless @comments == other.comments true end |