Method: CTM::Number#initialize
- Defined in:
- lib/ctm/number.rb
#initialize(data, token = nil) ⇒ Number
Returns a new instance of Number.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/ctm/number.rb', line 6 def initialize(data, token=nil) super(data, token) @id = data['id'] @account_id = data['account_id'] @name = data['name'] @number = data['number'] @formatted = data['formatted'] @split = data['split'] @routing = data['routing'] end |