Exception: Moov::Models::Errors::RequestCardError

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(authorized_user_account_id: nil, nickname: nil, metadata: nil, billing_address: nil, expiration: nil, controls: nil, raw_response: nil) ⇒ RequestCardError

Returns a new instance of RequestCardError.



31
32
33
34
35
36
37
38
39
# File 'lib/moov/models/errors/requestcarderror.rb', line 31

def initialize(authorized_user_account_id: nil, nickname: nil, metadata: nil, billing_address: nil, expiration: nil, controls: nil, raw_response: nil)
  @authorized_user_account_id = 
  @nickname = nickname
  @metadata = 
  @billing_address = billing_address
  @expiration = expiration
  @controls = controls
  @raw_response = raw_response
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/moov/models/errors/requestcarderror.rb', line 42

def ==(other)
  return false unless other.is_a? self.class
  return false unless @authorized_user_account_id == other.
  return false unless @nickname == other.nickname
  return false unless @metadata == other.
  return false unless @billing_address == other.billing_address
  return false unless @expiration == other.expiration
  return false unless @controls == other.controls
  return false unless @raw_response == other.raw_response
  true
end