Class: PagSeguro::Transaction::Phone

Inherits:
Object
  • Object
show all
Defined in:
lib/pagseguro/transaction/phone.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#phoneObject (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_codeObject



10
11
12
# File 'lib/pagseguro/transaction/phone.rb', line 10

def area_code
  phone['areaCode']
end

#numberObject



14
15
16
# File 'lib/pagseguro/transaction/phone.rb', line 14

def number
  phone['number']
end