Class: Moov::Models::Components::WebhookDataNetworkIDUpdated

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(account_id:, visa_mid: nil, mastercard_mid: nil, discover_mid: nil, amex_mid: nil, updated_on: nil) ⇒ WebhookDataNetworkIDUpdated

Returns a new instance of WebhookDataNetworkIDUpdated.



30
31
32
33
34
35
36
37
# File 'lib/moov/models/components/webhookdatanetworkidupdated.rb', line 30

def initialize(account_id:, visa_mid: nil, mastercard_mid: nil, discover_mid: nil, amex_mid: nil, updated_on: nil)
  @account_id = 
  @visa_mid = visa_mid
  @mastercard_mid = mastercard_mid
  @discover_mid = discover_mid
  @amex_mid = amex_mid
  @updated_on = updated_on
end

Instance Method Details

#==(other) ⇒ Object



40
41
42
43
44
45
46
47
48
49
# File 'lib/moov/models/components/webhookdatanetworkidupdated.rb', line 40

def ==(other)
  return false unless other.is_a? self.class
  return false unless @account_id == other.
  return false unless @visa_mid == other.visa_mid
  return false unless @mastercard_mid == other.mastercard_mid
  return false unless @discover_mid == other.discover_mid
  return false unless @amex_mid == other.amex_mid
  return false unless @updated_on == other.updated_on
  true
end