Class: Moov::Models::Components::GooglePayResponse

Inherits:
Object
  • Object
show all
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

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(brand:, card_details:, fingerprint:, expiration:, issuer_country: nil) ⇒ GooglePayResponse

Returns a new instance of GooglePayResponse.



29
30
31
32
33
34
35
# File 'lib/moov/models/components/googlepayresponse.rb', line 29

def initialize(brand:, card_details:, fingerprint:, expiration:, issuer_country: nil)
  @brand = brand
  @card_details = card_details
  @fingerprint = fingerprint
  @expiration = expiration
  @issuer_country = issuer_country
end

Instance Method Details

#==(other) ⇒ Object



38
39
40
41
42
43
44
45
46
# File 'lib/moov/models/components/googlepayresponse.rb', line 38

def ==(other)
  return false unless other.is_a? self.class
  return false unless @brand == other.brand
  return false unless @card_details == other.card_details
  return false unless @fingerprint == other.fingerprint
  return false unless @expiration == other.expiration
  return false unless @issuer_country == other.issuer_country
  true
end