Class: Braintree::AndroidPayCard

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/android_pay_card.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

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

#binObject (readonly)

Returns the value of attribute bin.



5
6
7
# File 'lib/braintree/android_pay_card.rb', line 5

def bin
  @bin
end

#created_atObject (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_idObject (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

#defaultObject (readonly)

Returns the value of attribute default.



5
6
7
# File 'lib/braintree/android_pay_card.rb', line 5

def default
  @default
end

#expiration_monthObject (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_yearObject (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_idObject (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_urlObject (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_4Object (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_typeObject (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_descriptionObject (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

#subscriptionsObject (readonly)

Returns the value of attribute subscriptions.



5
6
7
# File 'lib/braintree/android_pay_card.rb', line 5

def subscriptions
  @subscriptions
end

#tokenObject (readonly)

Returns the value of attribute token.



5
6
7
# File 'lib/braintree/android_pay_card.rb', line 5

def token
  @token
end

#updated_atObject (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_4Object (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_typeObject (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_typeObject



19
20
21
# File 'lib/braintree/android_pay_card.rb', line 19

def card_type
  virtual_card_type
end

#default?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/braintree/android_pay_card.rb', line 15

def default?
  @default
end

#last_4Object



23
24
25
# File 'lib/braintree/android_pay_card.rb', line 23

def last_4
  virtual_card_last_4
end