Class: Moov::Models::Components::EnrichedIndustry
- Inherits:
-
Object
- Object
- Moov::Models::Components::EnrichedIndustry
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/enrichedindustry.rb
Overview
An industry’s MCC/SIC/NAICS codes, along with descriptive title.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(title:, naics:, sic:, mcc:) ⇒ EnrichedIndustry
constructor
A new instance of EnrichedIndustry.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(title:, naics:, sic:, mcc:) ⇒ EnrichedIndustry
Returns a new instance of EnrichedIndustry.
25 26 27 28 29 30 |
# File 'lib/moov/models/components/enrichedindustry.rb', line 25 def initialize(title:, naics:, sic:, mcc:) @title = title @naics = naics @sic = sic @mcc = mcc end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/moov/models/components/enrichedindustry.rb', line 33 def ==(other) return false unless other.is_a? self.class return false unless @title == other.title return false unless @naics == other.naics return false unless @sic == other.sic return false unless @mcc == other.mcc true end |