Class: Braintree::GooglePayCard
- Inherits:
-
Object
- Object
- Braintree::GooglePayCard
- Includes:
- BaseModule
- Defined in:
- lib/braintree/google_pay_card.rb
Instance Attribute Summary collapse
-
#bin ⇒ Object
readonly
Returns the value of attribute bin.
-
#commercial ⇒ Object
readonly
Returns the value of attribute commercial.
-
#country_of_issuance ⇒ Object
readonly
Returns the value of attribute country_of_issuance.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#customer_id ⇒ Object
readonly
Returns the value of attribute customer_id.
-
#debit ⇒ Object
readonly
Returns the value of attribute debit.
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#durbin_regulated ⇒ Object
readonly
Returns the value of attribute durbin_regulated.
-
#expiration_month ⇒ Object
readonly
Returns the value of attribute expiration_month.
-
#expiration_year ⇒ Object
readonly
Returns the value of attribute expiration_year.
-
#google_transaction_id ⇒ Object
readonly
Returns the value of attribute google_transaction_id.
-
#healthcare ⇒ Object
readonly
Returns the value of attribute healthcare.
-
#image_url ⇒ Object
readonly
Returns the value of attribute image_url.
-
#issuing_bank ⇒ Object
readonly
Returns the value of attribute issuing_bank.
-
#payroll ⇒ Object
readonly
Returns the value of attribute payroll.
-
#prepaid ⇒ Object
readonly
Returns the value of attribute prepaid.
-
#product_id ⇒ Object
readonly
Returns the value of attribute product_id.
-
#source_card_last_4 ⇒ Object
readonly
Returns the value of attribute source_card_last_4.
-
#source_card_type ⇒ Object
readonly
Returns the value of attribute source_card_type.
-
#source_description ⇒ Object
readonly
Returns the value of attribute source_description.
-
#subscriptions ⇒ Object
readonly
Returns the value of attribute subscriptions.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#virtual_card_last_4 ⇒ Object
readonly
Returns the value of attribute virtual_card_last_4.
-
#virtual_card_type ⇒ Object
readonly
Returns the value of attribute virtual_card_type.
Class Method Summary collapse
Instance Method Summary collapse
- #card_type ⇒ Object
- #default? ⇒ Boolean
-
#initialize(gateway, attributes) ⇒ GooglePayCard
constructor
A new instance of GooglePayCard.
- #is_network_tokenized? ⇒ Boolean
- #last_4 ⇒ Object
Methods included from BaseModule
Methods included from BaseModule::Methods
#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class
Constructor Details
#initialize(gateway, attributes) ⇒ GooglePayCard
Returns a new instance of GooglePayCard.
31 32 33 34 35 |
# File 'lib/braintree/google_pay_card.rb', line 31 def initialize(gateway, attributes) @gateway = gateway set_instance_variables_from_hash(attributes) @subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) } end |
Instance Attribute Details
#bin ⇒ Object (readonly)
Returns the value of attribute bin.
5 6 7 |
# File 'lib/braintree/google_pay_card.rb', line 5 def bin @bin end |
#commercial ⇒ Object (readonly)
Returns the value of attribute commercial.
6 7 8 |
# File 'lib/braintree/google_pay_card.rb', line 6 def commercial @commercial end |
#country_of_issuance ⇒ Object (readonly)
Returns the value of attribute country_of_issuance.
7 8 9 |
# File 'lib/braintree/google_pay_card.rb', line 7 def country_of_issuance @country_of_issuance end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/braintree/google_pay_card.rb', line 8 def created_at @created_at end |
#customer_id ⇒ Object (readonly)
Returns the value of attribute customer_id.
9 10 11 |
# File 'lib/braintree/google_pay_card.rb', line 9 def customer_id @customer_id end |
#debit ⇒ Object (readonly)
Returns the value of attribute debit.
10 11 12 |
# File 'lib/braintree/google_pay_card.rb', line 10 def debit @debit end |
#default ⇒ Object (readonly)
Returns the value of attribute default.
11 12 13 |
# File 'lib/braintree/google_pay_card.rb', line 11 def default @default end |
#durbin_regulated ⇒ Object (readonly)
Returns the value of attribute durbin_regulated.
12 13 14 |
# File 'lib/braintree/google_pay_card.rb', line 12 def durbin_regulated @durbin_regulated end |
#expiration_month ⇒ Object (readonly)
Returns the value of attribute expiration_month.
13 14 15 |
# File 'lib/braintree/google_pay_card.rb', line 13 def expiration_month @expiration_month end |
#expiration_year ⇒ Object (readonly)
Returns the value of attribute expiration_year.
14 15 16 |
# File 'lib/braintree/google_pay_card.rb', line 14 def expiration_year @expiration_year end |
#google_transaction_id ⇒ Object (readonly)
Returns the value of attribute google_transaction_id.
15 16 17 |
# File 'lib/braintree/google_pay_card.rb', line 15 def google_transaction_id @google_transaction_id end |
#healthcare ⇒ Object (readonly)
Returns the value of attribute healthcare.
16 17 18 |
# File 'lib/braintree/google_pay_card.rb', line 16 def healthcare @healthcare end |
#image_url ⇒ Object (readonly)
Returns the value of attribute image_url.
17 18 19 |
# File 'lib/braintree/google_pay_card.rb', line 17 def image_url @image_url end |
#issuing_bank ⇒ Object (readonly)
Returns the value of attribute issuing_bank.
18 19 20 |
# File 'lib/braintree/google_pay_card.rb', line 18 def issuing_bank @issuing_bank end |
#payroll ⇒ Object (readonly)
Returns the value of attribute payroll.
19 20 21 |
# File 'lib/braintree/google_pay_card.rb', line 19 def payroll @payroll end |
#prepaid ⇒ Object (readonly)
Returns the value of attribute prepaid.
20 21 22 |
# File 'lib/braintree/google_pay_card.rb', line 20 def prepaid @prepaid end |
#product_id ⇒ Object (readonly)
Returns the value of attribute product_id.
21 22 23 |
# File 'lib/braintree/google_pay_card.rb', line 21 def product_id @product_id end |
#source_card_last_4 ⇒ Object (readonly)
Returns the value of attribute source_card_last_4.
22 23 24 |
# File 'lib/braintree/google_pay_card.rb', line 22 def source_card_last_4 @source_card_last_4 end |
#source_card_type ⇒ Object (readonly)
Returns the value of attribute source_card_type.
23 24 25 |
# File 'lib/braintree/google_pay_card.rb', line 23 def source_card_type @source_card_type end |
#source_description ⇒ Object (readonly)
Returns the value of attribute source_description.
24 25 26 |
# File 'lib/braintree/google_pay_card.rb', line 24 def source_description @source_description end |
#subscriptions ⇒ Object (readonly)
Returns the value of attribute subscriptions.
25 26 27 |
# File 'lib/braintree/google_pay_card.rb', line 25 def subscriptions @subscriptions end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
26 27 28 |
# File 'lib/braintree/google_pay_card.rb', line 26 def token @token end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
27 28 29 |
# File 'lib/braintree/google_pay_card.rb', line 27 def updated_at @updated_at end |
#virtual_card_last_4 ⇒ Object (readonly)
Returns the value of attribute virtual_card_last_4.
28 29 30 |
# File 'lib/braintree/google_pay_card.rb', line 28 def virtual_card_last_4 @virtual_card_last_4 end |
#virtual_card_type ⇒ Object (readonly)
Returns the value of attribute virtual_card_type.
29 30 31 |
# File 'lib/braintree/google_pay_card.rb', line 29 def virtual_card_type @virtual_card_type end |
Class Method Details
._new(*args) ⇒ Object
57 58 59 |
# File 'lib/braintree/google_pay_card.rb', line 57 def self._new(*args) self.new(*args) end |
Instance Method Details
#card_type ⇒ Object
45 46 47 |
# File 'lib/braintree/google_pay_card.rb', line 45 def card_type virtual_card_type end |
#default? ⇒ Boolean
37 38 39 |
# File 'lib/braintree/google_pay_card.rb', line 37 def default? @default end |
#is_network_tokenized? ⇒ Boolean
41 42 43 |
# File 'lib/braintree/google_pay_card.rb', line 41 def is_network_tokenized? @is_network_tokenized end |
#last_4 ⇒ Object
49 50 51 |
# File 'lib/braintree/google_pay_card.rb', line 49 def last_4 virtual_card_last_4 end |