Method: CTM::ReceivingNumberList#initialize
- Defined in:
- lib/ctm/receiving_number_list.rb
#initialize(options = {}, token = nil) ⇒ ReceivingNumberList
Returns a new instance of ReceivingNumberList.
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/ctm/receiving_number_list.rb', line 3 def initialize(={}, token=nil) super('ReceivingNumber', , token) @account_id = [:account_id] @number_id = [:number_id] if @number_id && @account_id @list_type_path = "accounts/#{@account_id}/numbers/#{@number_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 |