Method: CTM::NumberList#initialize
- Defined in:
- lib/ctm/number_list.rb
#initialize(options = {}, token = nil) ⇒ NumberList
Returns a new instance of NumberList.
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/ctm/number_list.rb', line 3 def initialize(={}, token=nil) super('Number', , token) @source_id = [:source_id] if @source_id && @account_id @list_type_path = "accounts/#{@account_id}/sources/#{@source_id}/#{@list_token_type}" elsif @account_id @list_type_path = "accounts/#{@account_id}/#{@list_token_type}" else @list_type_path = @list_token_type end end |