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