Class: PagSeguro::Transaction::Phone
- Inherits:
-
Object
- Object
- PagSeguro::Transaction::Phone
- Defined in:
- lib/pagseguro/transaction/phone.rb
Instance Attribute Summary collapse
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
Instance Method Summary collapse
- #area_code ⇒ Object
-
#initialize(phone) ⇒ Phone
constructor
A new instance of Phone.
- #number ⇒ Object
Constructor Details
#initialize(phone) ⇒ Phone
Returns a new instance of Phone.
6 7 8 |
# File 'lib/pagseguro/transaction/phone.rb', line 6 def initialize(phone) @phone = phone end |
Instance Attribute Details
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
4 5 6 |
# File 'lib/pagseguro/transaction/phone.rb', line 4 def phone @phone end |
Instance Method Details
#area_code ⇒ Object
10 11 12 |
# File 'lib/pagseguro/transaction/phone.rb', line 10 def area_code phone['areaCode'] end |
#number ⇒ Object
14 15 16 |
# File 'lib/pagseguro/transaction/phone.rb', line 14 def number phone['number'] end |