Class: Ppl::Entity::PhoneNumber
- Inherits:
-
Object
- Object
- Ppl::Entity::PhoneNumber
- Defined in:
- lib/ppl/entity/phone_number.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
Returns the value of attribute number.
-
#preferred ⇒ Object
Returns the value of attribute preferred.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(number = nil, type = nil) ⇒ PhoneNumber
constructor
A new instance of PhoneNumber.
Constructor Details
#initialize(number = nil, type = nil) ⇒ PhoneNumber
Returns a new instance of PhoneNumber.
7 8 9 10 11 |
# File 'lib/ppl/entity/phone_number.rb', line 7 def initialize(number = nil, type = nil) @number = number @preferred = false @type = type end |
Instance Attribute Details
#number ⇒ Object
Returns the value of attribute number.
3 4 5 |
# File 'lib/ppl/entity/phone_number.rb', line 3 def number @number end |
#preferred ⇒ Object
Returns the value of attribute preferred.
5 6 7 |
# File 'lib/ppl/entity/phone_number.rb', line 5 def preferred @preferred end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/ppl/entity/phone_number.rb', line 4 def type @type end |