Class: PagSeguro::Phone
- Inherits:
-
Object
- Object
- PagSeguro::Phone
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/pagseguro/phone.rb
Instance Attribute Summary collapse
-
#area_code ⇒ Object
Set the area code.
-
#number ⇒ Object
Set the phone number.
Instance Method Summary collapse
-
#initialize(area_code, number) ⇒ Phone
constructor
A new instance of Phone.
Constructor Details
#initialize(area_code, number) ⇒ Phone
Returns a new instance of Phone.
16 17 18 19 |
# File 'lib/pagseguro/phone.rb', line 16 def initialize(area_code, number) @area_code = area_code @number = number end |
Instance Attribute Details
#area_code ⇒ Object
Set the area code.
10 11 12 |
# File 'lib/pagseguro/phone.rb', line 10 def area_code @area_code end |
#number ⇒ Object
Set the phone number. Must have 7-9 numbers.
14 15 16 |
# File 'lib/pagseguro/phone.rb', line 14 def number @number end |