Class: Moov::Models::Errors::LinkApplePayError

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(error: nil, payment_data: nil, payment_method: nil, transaction_identifier: nil, raw_response: nil) ⇒ LinkApplePayError

Returns a new instance of LinkApplePayError.



28
29
30
31
32
33
34
# File 'lib/moov/models/errors/linkapplepayerror.rb', line 28

def initialize(error: nil, payment_data: nil, payment_method: nil, transaction_identifier: nil, raw_response: nil)
  @error = error
  @payment_data = payment_data
  @payment_method = payment_method
  @transaction_identifier = transaction_identifier
  @raw_response = raw_response
end

Instance Method Details

#==(other) ⇒ Object



37
38
39
40
41
42
43
44
45
# File 'lib/moov/models/errors/linkapplepayerror.rb', line 37

def ==(other)
  return false unless other.is_a? self.class
  return false unless @error == other.error
  return false unless @payment_data == other.payment_data
  return false unless @payment_method == other.payment_method
  return false unless @transaction_identifier == other.transaction_identifier
  return false unless @raw_response == other.raw_response
  true
end