Class: PagSeguro::Document
- Inherits:
-
Object
- Object
- PagSeguro::Document
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/pagseguro/document.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Set the document type Only CPF is acceptable.
-
#value ⇒ Object
Set the document number.
Instance Method Summary collapse
-
#initialize(value) ⇒ Document
constructor
A new instance of Document.
Constructor Details
#initialize(value) ⇒ Document
Returns a new instance of Document.
15 16 17 18 |
# File 'lib/pagseguro/document.rb', line 15 def initialize(value) @type = 'CPF' @value = value end |
Instance Attribute Details
#type ⇒ Object
Set the document type Only CPF is acceptable
9 10 11 |
# File 'lib/pagseguro/document.rb', line 9 def type @type end |
#value ⇒ Object
Set the document number. Must have 7-9 numbers.
13 14 15 |
# File 'lib/pagseguro/document.rb', line 13 def value @value end |