Class: Moov::Models::Components::IssuingMerchantData
- Inherits:
-
Object
- Object
- Moov::Models::Components::IssuingMerchantData
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/issuingmerchantdata.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(network_id:, country:, mcc:, name: nil, city: nil, postal_code: nil, state: nil) ⇒ IssuingMerchantData
constructor
A new instance of IssuingMerchantData.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(network_id:, country:, mcc:, name: nil, city: nil, postal_code: nil, state: nil) ⇒ IssuingMerchantData
Returns a new instance of IssuingMerchantData.
31 32 33 34 35 36 37 38 39 |
# File 'lib/moov/models/components/issuingmerchantdata.rb', line 31 def initialize(network_id:, country:, mcc:, name: nil, city: nil, postal_code: nil, state: nil) @network_id = network_id @country = country @mcc = mcc @name = name @city = city @postal_code = postal_code @state = state end |
Instance Method Details
#==(other) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/moov/models/components/issuingmerchantdata.rb', line 42 def ==(other) return false unless other.is_a? self.class return false unless @network_id == other.network_id return false unless @country == other.country return false unless @mcc == other.mcc return false unless @name == other.name return false unless @city == other.city return false unless @postal_code == other.postal_code return false unless @state == other.state true end |