Class: Moov::Models::Components::IssuingMerchantData

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(network_id: nil, name: nil, city: nil, country: nil, postal_code: nil, state: nil, mcc: nil) ⇒ IssuingMerchantData

Returns a new instance of IssuingMerchantData.



32
33
34
35
36
37
38
39
40
# File 'lib/moov/models/components/issuingmerchantdata.rb', line 32

def initialize(network_id: nil, name: nil, city: nil, country: nil, postal_code: nil, state: nil, mcc: nil)
  @network_id = network_id
  @name = name
  @city = city
  @country = country
  @postal_code = postal_code
  @state = state
  @mcc = mcc
end

Instance Method Details

#==(other) ⇒ Object



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/moov/models/components/issuingmerchantdata.rb', line 43

def ==(other)
  return false unless other.is_a? self.class
  return false unless @network_id == other.network_id
  return false unless @name == other.name
  return false unless @city == other.city
  return false unless @country == other.country
  return false unless @postal_code == other.postal_code
  return false unless @state == other.state
  return false unless @mcc == other.mcc
  true
end