Class: Switchcoder::PhoneNumber
- Inherits:
-
Object
- Object
- Switchcoder::PhoneNumber
- Defined in:
- lib/switchcoder/phone_number.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(num, opts = nil) ⇒ PhoneNumber
constructor
A new instance of PhoneNumber.
Constructor Details
#initialize(num, opts = nil) ⇒ PhoneNumber
Returns a new instance of PhoneNumber.
7 8 9 10 |
# File 'lib/switchcoder/phone_number.rb', line 7 def initialize(num, opts = nil) @number = num; @opts = opts; end |
Instance Attribute Details
#number ⇒ Object (readonly)
Returns the value of attribute number.
5 6 7 |
# File 'lib/switchcoder/phone_number.rb', line 5 def number @number end |