Class: Plivo::Resources::NumberPool
Constant Summary
Constants included
from Utils
Utils::TYPE_WHITELIST
Instance Attribute Summary
#id
Instance Method Summary
collapse
Methods included from Utils
GetSortedQueryParamString?, compute_signatureV3?, expected_type?, expected_value?, generate_url?, getMapFromQueryString?, is_one_among_string_url?, multi_valid_param?, raise_invalid_request, valid_account?, valid_date_format?, valid_mainaccount?, valid_multiple_destination_integers?, valid_multiple_destination_nos?, valid_param?, valid_range?, valid_signature?, valid_signatureV3?, valid_subaccount?, valid_url?
Constructor Details
#initialize(client, options = nil) ⇒ NumberPool
Returns a new instance of NumberPool.
338
339
340
341
342
|
# File 'lib/plivo/resources/powerpacks.rb', line 338
def initialize(client, options = nil)
@_name = 'Numberpool'
@_identifier_string = 'number_pool_id'
super
end
|
Instance Method Details
#numbers ⇒ Object
344
345
346
347
|
# File 'lib/plivo/resources/powerpacks.rb', line 344
def numbers
options = {'number_pool_id' => @number_pool_id}
Numbers.new(@_client, {resource_json:options })
end
|
#shortcodes ⇒ Object
348
349
350
351
|
# File 'lib/plivo/resources/powerpacks.rb', line 348
def shortcodes
options = {'number_pool_id' => @number_pool_id}
Shortcode.new(@_client, {resource_json: options})
end
|
#tollfree ⇒ Object
352
353
354
355
|
# File 'lib/plivo/resources/powerpacks.rb', line 352
def tollfree
options = {'number_pool_id' => @number_pool_id}
Tollfree.new(@_client, {resource_json: options})
end
|