Class: Moov::Models::Errors::RequestCardError

Inherits:
Object
  • 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(funding_wallet_id: nil, form_factor: nil, authorized_user: nil, memo: nil, expiration: nil, controls: nil, raw_response: nil) ⇒ RequestCardError

Returns a new instance of RequestCardError.



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

def initialize(funding_wallet_id: nil, form_factor: nil, authorized_user: nil, memo: nil, expiration: nil, controls: nil, raw_response: nil)
  @funding_wallet_id = funding_wallet_id
  @form_factor = form_factor
  @authorized_user = authorized_user
  @memo = memo
  @expiration = expiration
  @controls = controls
  @raw_response = raw_response
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @funding_wallet_id == other.funding_wallet_id
  return false unless @form_factor == other.form_factor
  return false unless @authorized_user == other.authorized_user
  return false unless @memo == other.memo
  return false unless @expiration == other.expiration
  return false unless @controls == other.controls
  return false unless @raw_response == other.raw_response
  true
end