Class: GustoEmbedded::Models::Shared::Industry

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/industry.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, sic_codes: nil, title: nil, naics_code: nil) ⇒ Industry

Returns a new instance of Industry.



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

def initialize(company_uuid: nil, sic_codes: nil, title: nil, naics_code: nil)
  @company_uuid = company_uuid
  @sic_codes = sic_codes
  @title = title
  @naics_code = naics_code
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @company_uuid == other.company_uuid
  return false unless @sic_codes == other.sic_codes
  return false unless @title == other.title
  return false unless @naics_code == other.naics_code
  true
end