Class: PagseguroCatcher::Transaction::Sender
- Inherits:
-
Body
- Object
- Body
- PagseguroCatcher::Transaction::Sender
show all
- Defined in:
- lib/pagseguro_catcher/transaction/sender.rb
Instance Attribute Summary
Attributes inherited from Body
#body
Instance Method Summary
collapse
Methods inherited from Body
#[], #method_missing
Constructor Details
#initialize(body) ⇒ Sender
Returns a new instance of Sender.
6
7
8
|
# File 'lib/pagseguro_catcher/transaction/sender.rb', line 6
def initialize(body)
self.body = body[:sender]
end
|
Instance Method Details
#email ⇒ Object
14
15
16
|
# File 'lib/pagseguro_catcher/transaction/sender.rb', line 14
def email
self[:email]
end
|
#name ⇒ Object
10
11
12
|
# File 'lib/pagseguro_catcher/transaction/sender.rb', line 10
def name
self[:name]
end
|
#phone ⇒ Object
18
19
20
|
# File 'lib/pagseguro_catcher/transaction/sender.rb', line 18
def phone
{ :area => self[:phone][:areaCode], :number => self[:phone][:number] }
end
|