Class: Moov::Models::Components::RequestCard

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/requestcard.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:, authorized_user:, form_factor:, memo: nil, expiration: nil, controls: nil) ⇒ RequestCard

Returns a new instance of RequestCard.



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

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

Instance Method Details

#==(other) ⇒ Object



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

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