Class: Moov::Models::Components::MerchantCategoryRestrictionsError
- Inherits:
-
Object
- Object
- Moov::Models::Components::MerchantCategoryRestrictionsError
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/merchantcategoryrestrictionserror.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(mode: nil, categories: nil, custom_mc_cs: nil, exempt_merchants: nil) ⇒ MerchantCategoryRestrictionsError
constructor
A new instance of MerchantCategoryRestrictionsError.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(mode: nil, categories: nil, custom_mc_cs: nil, exempt_merchants: nil) ⇒ MerchantCategoryRestrictionsError
Returns a new instance of MerchantCategoryRestrictionsError.
25 26 27 28 29 30 |
# File 'lib/moov/models/components/merchantcategoryrestrictionserror.rb', line 25 def initialize(mode: nil, categories: nil, custom_mc_cs: nil, exempt_merchants: nil) @mode = mode @categories = categories @custom_mc_cs = custom_mc_cs @exempt_merchants = exempt_merchants end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/moov/models/components/merchantcategoryrestrictionserror.rb', line 33 def ==(other) return false unless other.is_a? self.class return false unless @mode == other.mode return false unless @categories == other.categories return false unless @custom_mc_cs == other.custom_mc_cs return false unless @exempt_merchants == other.exempt_merchants true end |