Class: Moov::Models::Components::IndustryTaxonomy

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/industrytaxonomy.rb

Overview

A structured industry taxonomy entry with category and mapped to a default MCC code.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(industry:, display_name:, category:, category_display_name:, default_mcc:) ⇒ IndustryTaxonomy

Returns a new instance of IndustryTaxonomy.



28
29
30
31
32
33
34
# File 'lib/moov/models/components/industrytaxonomy.rb', line 28

def initialize(industry:, display_name:, category:, category_display_name:, default_mcc:)
  @industry = industry
  @display_name = display_name
  @category = category
  @category_display_name = category_display_name
  @default_mcc = default_mcc
end

Instance Method Details

#==(other) ⇒ Object



37
38
39
40
41
42
43
44
45
# File 'lib/moov/models/components/industrytaxonomy.rb', line 37

def ==(other)
  return false unless other.is_a? self.class
  return false unless @industry == other.industry
  return false unless @display_name == other.display_name
  return false unless @category == other.category
  return false unless @category_display_name == other.category_display_name
  return false unless @default_mcc == other.default_mcc
  true
end