Class: GustoEmbedded::Models::Shared::PartnerManagedCompanyMigrationReadinessResponse

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(ready_to_migrate: nil, company_uuid: nil, errors: nil, warnings: nil) ⇒ PartnerManagedCompanyMigrationReadinessResponse

Returns a new instance of PartnerManagedCompanyMigrationReadinessResponse.



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

def initialize(ready_to_migrate: nil, company_uuid: nil, errors: nil, warnings: nil)
  @ready_to_migrate = ready_to_migrate
  @company_uuid = company_uuid
  @errors = errors
  @warnings = warnings
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @ready_to_migrate == other.ready_to_migrate
  return false unless @company_uuid == other.company_uuid
  return false unless @errors == other.errors
  return false unless @warnings == other.warnings
  true
end