Class: PagSeguro::Sender
- Inherits:
-
Object
- Object
- PagSeguro::Sender
- Includes:
- Extensions::EnsureType, Extensions::MassAssignment
- Defined in:
- lib/pagseguro/sender.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Get the sender address.
-
#document ⇒ Object
Get the sender document.
-
#email ⇒ Object
Set the sender e-mail.
-
#hash ⇒ Object
Set sender hash.
-
#ip ⇒ Object
Set the sender ip.
-
#name ⇒ Object
Set the sender name.
-
#phone ⇒ Object
Get the sender phone.
Instance Method Summary collapse
Methods included from Extensions::EnsureType
Methods included from Extensions::MassAssignment
Instance Attribute Details
#address ⇒ Object
Get the sender address
13 14 15 |
# File 'lib/pagseguro/sender.rb', line 13 def address @address end |
#document ⇒ Object
Get the sender document
10 11 12 |
# File 'lib/pagseguro/sender.rb', line 10 def document @document end |
#email ⇒ Object
Set the sender e-mail.
19 20 21 |
# File 'lib/pagseguro/sender.rb', line 19 def email @email end |
#hash ⇒ Object
Set sender hash. It’s used to identify the sender.
26 27 28 |
# File 'lib/pagseguro/sender.rb', line 26 def hash @hash end |
#ip ⇒ Object
Set the sender ip
22 23 24 |
# File 'lib/pagseguro/sender.rb', line 22 def ip @ip end |
#name ⇒ Object
Set the sender name.
16 17 18 |
# File 'lib/pagseguro/sender.rb', line 16 def name @name end |
#phone ⇒ Object
Get the sender phone.
7 8 9 |
# File 'lib/pagseguro/sender.rb', line 7 def phone @phone end |
Instance Method Details
#documents ⇒ Object
33 34 35 |
# File 'lib/pagseguro/sender.rb', line 33 def documents @documents ||= Documents.new end |
#documents=(_documents = []) ⇒ Object
37 38 39 40 41 |
# File 'lib/pagseguro/sender.rb', line 37 def documents=(_documents=[]) _documents.each do |document| documents << document end end |