Class: Moov::Models::Components::GooglePayResponse
- Inherits:
-
Object
- Object
- Moov::Models::Components::GooglePayResponse
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/googlepayresponse.rb
Overview
Describes a Google Pay token on a Moov account.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(token_id:, brand:, card_type:, card_display_name:, fingerprint:, expiration:, dynamic_last_four:, issuer_country: nil, auth_method: nil) ⇒ GooglePayResponse
constructor
A new instance of GooglePayResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(token_id:, brand:, card_type:, card_display_name:, fingerprint:, expiration:, dynamic_last_four:, issuer_country: nil, auth_method: nil) ⇒ GooglePayResponse
Returns a new instance of GooglePayResponse.
40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/moov/models/components/googlepayresponse.rb', line 40 def initialize(token_id:, brand:, card_type:, card_display_name:, fingerprint:, expiration:, dynamic_last_four:, issuer_country: nil, auth_method: nil) @token_id = token_id @brand = brand @card_type = card_type @card_display_name = card_display_name @fingerprint = fingerprint @expiration = expiration @dynamic_last_four = dynamic_last_four @issuer_country = issuer_country @auth_method = auth_method end |
Instance Method Details
#==(other) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/moov/models/components/googlepayresponse.rb', line 53 def ==(other) return false unless other.is_a? self.class return false unless @token_id == other.token_id return false unless @brand == other.brand return false unless @card_type == other.card_type return false unless @card_display_name == other.card_display_name return false unless @fingerprint == other.fingerprint return false unless @expiration == other.expiration return false unless @dynamic_last_four == other.dynamic_last_four return false unless @issuer_country == other.issuer_country return false unless @auth_method == other.auth_method true end |