Class: PagSeguro::CreditCard

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/pagseguro/credit_card.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_addressObject

Get the sender phone.



17
18
19
# File 'lib/pagseguro/credit_card.rb', line 17

def billing_address
  @billing_address
end

#holderObject

Get the sender phone.



14
15
16
# File 'lib/pagseguro/credit_card.rb', line 14

def holder
  @holder
end

#installmentObject

Set the CPF document.



11
12
13
# File 'lib/pagseguro/credit_card.rb', line 11

def installment
  @installment
end

#tokenObject

Set the token that represents the credit card.



8
9
10
# File 'lib/pagseguro/credit_card.rb', line 8

def token
  @token
end