Class: Moov::Models::Components::LinkGooglePay
- Inherits:
-
Object
- Object
- Moov::Models::Components::LinkGooglePay
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/linkgooglepay.rb
Overview
The encrypted Google Pay payment token (ECv2 format).
Refer to [Google's documentation](https://developers.google.com/pay/api/web/guides/resources/payment-data-cryptography#payment-method-token-structure)
for more information.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(token:) ⇒ LinkGooglePay
constructor
A new instance of LinkGooglePay.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(token:) ⇒ LinkGooglePay
Returns a new instance of LinkGooglePay.
25 26 27 |
# File 'lib/moov/models/components/linkgooglepay.rb', line 25 def initialize(token:) @token = token end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 |
# File 'lib/moov/models/components/linkgooglepay.rb', line 30 def ==(other) return false unless other.is_a? self.class return false unless @token == other.token true end |