Class: Plivo::Resources::NumberPool

Inherits:
Base::Resource show all
Defined in:
lib/plivo/resources/powerpacks.rb

Constant Summary

Constants included from Utils

Utils::TYPE_WHITELIST

Instance Attribute Summary

Attributes inherited from Base::Resource

#id

Instance Method Summary collapse

Methods included from Utils

GetSortedQueryParamString?, compute_signatureV3?, expected_type?, expected_value?, generate_url?, getMapFromQueryString?, raise_invalid_request, valid_account?, valid_mainaccount?, valid_param?, valid_signature?, valid_signatureV3?, valid_subaccount?

Constructor Details

#initialize(client, options = nil) ⇒ NumberPool

Returns a new instance of NumberPool.



334
335
336
337
338
# File 'lib/plivo/resources/powerpacks.rb', line 334

def initialize(client, options = nil)
  @_name = 'Numberpool'
  @_identifier_string = 'number_pool_id'
  super
end

Instance Method Details

#numbersObject



340
341
342
343
# File 'lib/plivo/resources/powerpacks.rb', line 340

def numbers
  options = {'number_pool_id' => @number_pool_id}
  Numbers.new(@_client, {resource_json:options })
end

#shortcodesObject



344
345
346
347
# File 'lib/plivo/resources/powerpacks.rb', line 344

def shortcodes
  options = {'number_pool_id' => @number_pool_id}
  Shortcode.new(@_client, {resource_json: options})
end

#tollfreeObject



348
349
350
351
# File 'lib/plivo/resources/powerpacks.rb', line 348

def tollfree
  options = {'number_pool_id' => @number_pool_id}
  Tollfree.new(@_client, {resource_json: options})
end