Class: Moov::Models::Components::IssuedCard
- Inherits:
-
Object
- Object
- Moov::Models::Components::IssuedCard
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/issuedcard.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(issued_card_id:, brand:, last_four_card_number:, expiration:, funding_wallet_id:, state:, form_factor:, created_on:, updated_on:, authorized_user_account_id: nil, nickname: nil, metadata: nil, billing_address: nil, controls: nil) ⇒ IssuedCard
constructor
A new instance of IssuedCard.
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:, funding_wallet_id:, state:, form_factor:, created_on:, updated_on:, authorized_user_account_id: nil, nickname: nil, metadata: nil, billing_address: nil, controls: nil) ⇒ IssuedCard
Returns a new instance of IssuedCard.
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/moov/models/components/issuedcard.rb', line 50 def initialize(issued_card_id:, brand:, last_four_card_number:, expiration:, funding_wallet_id:, state:, form_factor:, created_on:, updated_on:, authorized_user_account_id: nil, nickname: nil, metadata: nil, billing_address: nil, controls: nil) @issued_card_id = issued_card_id @brand = brand @last_four_card_number = last_four_card_number @expiration = expiration @funding_wallet_id = funding_wallet_id @state = state @form_factor = form_factor @created_on = created_on @updated_on = updated_on @authorized_user_account_id = @nickname = nickname @metadata = @billing_address = billing_address @controls = controls end |
Instance Method Details
#==(other) ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/moov/models/components/issuedcard.rb', line 68 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 @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 @updated_on == other.updated_on 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 @controls == other.controls true end |