Class: Switchcoder::PhoneNumber

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#numberObject (readonly)

Returns the value of attribute number.



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

def number
  @number
end