Class: Braintree::AndroidPayCard
- Inherits:
-
Object
- Object
- Braintree::AndroidPayCard
- Includes:
- BaseModule
- Defined in:
- lib/braintree/android_pay_card.rb
Instance Attribute Summary collapse
-
#bin ⇒ Object
readonly
Returns the value of attribute bin.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#customer_id ⇒ Object
readonly
Returns the value of attribute customer_id.
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#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.
-
#image_url ⇒ Object
readonly
Returns the value of attribute image_url.
-
#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
-
._new(*args) ⇒ Object
:nodoc:.
Instance Method Summary collapse
- #card_type ⇒ Object
- #default? ⇒ Boolean
-
#initialize(gateway, attributes) ⇒ AndroidPayCard
constructor
:nodoc:.
- #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) ⇒ AndroidPayCard
:nodoc:
9 10 11 12 13 |
# File 'lib/braintree/android_pay_card.rb', line 9 def initialize(gateway, attributes) # :nodoc: @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/android_pay_card.rb', line 5 def bin @bin end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/braintree/android_pay_card.rb', line 5 def created_at @created_at end |
#customer_id ⇒ Object (readonly)
Returns the value of attribute customer_id.
5 6 7 |
# File 'lib/braintree/android_pay_card.rb', line 5 def customer_id @customer_id end |
#default ⇒ Object (readonly)
Returns the value of attribute default.
5 6 7 |
# File 'lib/braintree/android_pay_card.rb', line 5 def default @default end |
#expiration_month ⇒ Object (readonly)
Returns the value of attribute expiration_month.
5 6 7 |
# File 'lib/braintree/android_pay_card.rb', line 5 def expiration_month @expiration_month end |
#expiration_year ⇒ Object (readonly)
Returns the value of attribute expiration_year.
5 6 7 |
# File 'lib/braintree/android_pay_card.rb', line 5 def expiration_year @expiration_year end |
#google_transaction_id ⇒ Object (readonly)
Returns the value of attribute google_transaction_id.
5 6 7 |
# File 'lib/braintree/android_pay_card.rb', line 5 def google_transaction_id @google_transaction_id end |
#image_url ⇒ Object (readonly)
Returns the value of attribute image_url.
5 6 7 |
# File 'lib/braintree/android_pay_card.rb', line 5 def image_url @image_url end |
#source_card_last_4 ⇒ Object (readonly)
Returns the value of attribute source_card_last_4.
5 6 7 |
# File 'lib/braintree/android_pay_card.rb', line 5 def source_card_last_4 @source_card_last_4 end |
#source_card_type ⇒ Object (readonly)
Returns the value of attribute source_card_type.
5 6 7 |
# File 'lib/braintree/android_pay_card.rb', line 5 def source_card_type @source_card_type end |
#source_description ⇒ Object (readonly)
Returns the value of attribute source_description.
5 6 7 |
# File 'lib/braintree/android_pay_card.rb', line 5 def source_description @source_description end |
#subscriptions ⇒ Object (readonly)
Returns the value of attribute subscriptions.
5 6 7 |
# File 'lib/braintree/android_pay_card.rb', line 5 def subscriptions @subscriptions end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
5 6 7 |
# File 'lib/braintree/android_pay_card.rb', line 5 def token @token end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
5 6 7 |
# File 'lib/braintree/android_pay_card.rb', line 5 def updated_at @updated_at end |
#virtual_card_last_4 ⇒ Object (readonly)
Returns the value of attribute virtual_card_last_4.
5 6 7 |
# File 'lib/braintree/android_pay_card.rb', line 5 def virtual_card_last_4 @virtual_card_last_4 end |
#virtual_card_type ⇒ Object (readonly)
Returns the value of attribute virtual_card_type.
5 6 7 |
# File 'lib/braintree/android_pay_card.rb', line 5 def virtual_card_type @virtual_card_type end |
Class Method Details
._new(*args) ⇒ Object
:nodoc:
31 32 33 |
# File 'lib/braintree/android_pay_card.rb', line 31 def self._new(*args) # :nodoc: self.new *args end |
Instance Method Details
#card_type ⇒ Object
19 20 21 |
# File 'lib/braintree/android_pay_card.rb', line 19 def card_type virtual_card_type end |
#default? ⇒ Boolean
15 16 17 |
# File 'lib/braintree/android_pay_card.rb', line 15 def default? @default end |
#last_4 ⇒ Object
23 24 25 |
# File 'lib/braintree/android_pay_card.rb', line 23 def last_4 virtual_card_last_4 end |