Class: PagSeguro::Sender
- Inherits:
-
Object
- Object
- PagSeguro::Sender
- Extended by:
- Forwardable
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/pagseguro/sender.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
Set the CPF document.
-
#email ⇒ Object
Set the sender e-mail.
-
#hash_id ⇒ Object
Set the hash identifier.
-
#name ⇒ Object
Set the sender name.
-
#phone ⇒ Object
Get the sender phone.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Sender
constructor
A new instance of Sender.
Constructor Details
#initialize(options = {}) ⇒ Sender
Returns a new instance of Sender.
26 27 28 29 30 |
# File 'lib/pagseguro/sender.rb', line 26 def initialize( = {}) @email = [:email] @name = [:name] @hash_id = [:hash_id] end |
Instance Attribute Details
#document ⇒ Object
Set the CPF document.
21 22 23 |
# File 'lib/pagseguro/sender.rb', line 21 def document @document end |
#email ⇒ Object
Set the sender e-mail.
12 13 14 |
# File 'lib/pagseguro/sender.rb', line 12 def email @email end |
#hash_id ⇒ Object
Set the hash identifier.
18 19 20 |
# File 'lib/pagseguro/sender.rb', line 18 def hash_id @hash_id end |
#name ⇒ Object
Set the sender name.
15 16 17 |
# File 'lib/pagseguro/sender.rb', line 15 def name @name end |
#phone ⇒ Object
Get the sender phone.
24 25 26 |
# File 'lib/pagseguro/sender.rb', line 24 def phone @phone end |