Class: Moov::Models::Components::IssuedCard

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(issued_card_id:, brand:, last_four_card_number:, expiration:, authorized_user:, funding_wallet_id:, state:, form_factor:, created_on:, memo: nil, controls: nil) ⇒ IssuedCard

Returns a new instance of IssuedCard.



45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/moov/models/components/issuedcard.rb', line 45

def initialize(issued_card_id:, brand:, last_four_card_number:, expiration:, authorized_user:, funding_wallet_id:, state:, form_factor:, created_on:, memo: nil, controls: nil)
  @issued_card_id = issued_card_id
  @brand = brand
  @last_four_card_number = last_four_card_number
  @expiration = expiration
  @authorized_user = authorized_user
  @funding_wallet_id = funding_wallet_id
  @state = state
  @form_factor = form_factor
  @created_on = created_on
  @memo = memo
  @controls = controls
end

Instance Method Details

#==(other) ⇒ Object



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/moov/models/components/issuedcard.rb', line 60

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