class PagSeguro::Document
Attributes
type[RW]
Set the type.
value[RW]
Set the value.
Public Instance Methods
==(other)
click to toggle source
# File lib/pagseguro/document.rb, line 11 def ==(other) [type, value] == [other.type, other.value] end
cnpj?()
click to toggle source
# File lib/pagseguro/document.rb, line 19 def cnpj? type == 'CNPJ' end
cpf?()
click to toggle source
# File lib/pagseguro/document.rb, line 15 def cpf? type == 'CPF' end