Class: Plivo::Resources::NumberPool
- Inherits:
-
Base::Resource
- Object
- Base::Resource
- Plivo::Resources::NumberPool
- Defined in:
- lib/plivo/resources/powerpacks.rb
Constant Summary
Constants included from Utils
Instance Attribute Summary
Attributes inherited from Base::Resource
Instance Method Summary collapse
-
#initialize(client, options = nil) ⇒ NumberPool
constructor
A new instance of NumberPool.
- #numbers ⇒ Object
- #shortcodes ⇒ Object
- #tollfree ⇒ Object
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, = 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 = {'number_pool_id' => @number_pool_id} Numbers.new(@_client, {resource_json: }) end |