class PagSeguro::Document
Attributes
type[RW]
Set the document type CPF or CNPJ is acceptable
value[RW]
Set the document number.
Public Class Methods
new(value, type = 'CPF')
click to toggle source
# File lib/pagseguro/document.rb, line 15 def initialize(value, type = 'CPF') @type = type @value = value end
Public Instance Methods
cpf?()
click to toggle source
# File lib/pagseguro/document.rb, line 20 def cpf? type == "CPF" end