Class: PagSeguro::CreditCard
- Inherits:
-
Object
- Object
- PagSeguro::CreditCard
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/pagseguro/credit_card.rb
Instance Attribute Summary collapse
-
#billing_address ⇒ Object
Get the sender phone.
-
#holder ⇒ Object
Get the sender phone.
-
#installment ⇒ Object
Set the CPF document.
-
#token ⇒ Object
Set the token that represents the credit card.
Instance Method Summary collapse
-
#initialize(token) ⇒ CreditCard
constructor
A new instance of CreditCard.
Constructor Details
#initialize(token) ⇒ CreditCard
Returns a new instance of CreditCard.
19 20 21 |
# File 'lib/pagseguro/credit_card.rb', line 19 def initialize(token) @token = token end |
Instance Attribute Details
#billing_address ⇒ Object
Get the sender phone.
17 18 19 |
# File 'lib/pagseguro/credit_card.rb', line 17 def billing_address @billing_address end |
#holder ⇒ Object
Get the sender phone.
14 15 16 |
# File 'lib/pagseguro/credit_card.rb', line 14 def holder @holder end |
#installment ⇒ Object
Set the CPF document.
11 12 13 |
# File 'lib/pagseguro/credit_card.rb', line 11 def installment @installment end |
#token ⇒ Object
Set the token that represents the credit card.
8 9 10 |
# File 'lib/pagseguro/credit_card.rb', line 8 def token @token end |