Class: Moov::Models::Components::MerchantCategory
- Inherits:
-
Object
- Object
- Moov::Models::Components::MerchantCategory
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/merchantcategory.rb
Overview
A predefined merchant category group and the merchant category codes (MCCs) it covers.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(category:, mccs:) ⇒ MerchantCategory
constructor
A new instance of MerchantCategory.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(category:, mccs:) ⇒ MerchantCategory
Returns a new instance of MerchantCategory.
22 23 24 25 |
# File 'lib/moov/models/components/merchantcategory.rb', line 22 def initialize(category:, mccs:) @category = category @mccs = mccs end |
Instance Method Details
#==(other) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/moov/models/components/merchantcategory.rb', line 28 def ==(other) return false unless other.is_a? self.class return false unless @category == other.category return false unless @mccs == other.mccs true end |