Class: Moov::Models::Components::FullIssuedCard
- Inherits:
-
Object
- Object
- Moov::Models::Components::FullIssuedCard
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/fullissuedcard.rb
Overview
The full details of an issued card, including PAN and CVV.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(issued_card_id:, brand:, last_four_card_number:, expiration:, authorized_user:, funding_wallet_id:, state:, form_factor:, created_on:, pan:, cvv:, memo: nil, controls: nil) ⇒ FullIssuedCard
constructor
A new instance of FullIssuedCard.
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:, pan:, cvv:, memo: nil, controls: nil) ⇒ FullIssuedCard
Returns a new instance of FullIssuedCard.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/moov/models/components/fullissuedcard.rb', line 49 def initialize(issued_card_id:, brand:, last_four_card_number:, expiration:, authorized_user:, funding_wallet_id:, state:, form_factor:, created_on:, pan:, cvv:, memo: nil, controls: nil) @issued_card_id = issued_card_id @brand = brand @last_four_card_number = last_four_card_number @expiration = expiration @authorized_user = @funding_wallet_id = funding_wallet_id @state = state @form_factor = form_factor @created_on = created_on @pan = pan @cvv = cvv @memo = memo @controls = controls end |
Instance Method Details
#==(other) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/moov/models/components/fullissuedcard.rb', line 66 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. 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 @pan == other.pan return false unless @cvv == other.cvv return false unless @memo == other.memo return false unless @controls == other.controls true end |