Class: Ppl::Entity::PhoneNumber

Inherits:
Object
  • Object
show all
Defined in:
lib/ppl/entity/phone_number.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#numberObject

Returns the value of attribute number.



3
4
5
# File 'lib/ppl/entity/phone_number.rb', line 3

def number
  @number
end

#preferredObject

Returns the value of attribute preferred.



5
6
7
# File 'lib/ppl/entity/phone_number.rb', line 5

def preferred
  @preferred
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/ppl/entity/phone_number.rb', line 4

def type
  @type
end