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
expected_type?, expected_value?, raise_invalid_request, valid_account?, valid_mainaccount?, valid_param?, valid_signature?, valid_subaccount?
Constructor Details
#initialize(client, options = nil) ⇒ NumberPool
Returns a new instance of NumberPool.
303 304 305 306 307 |
# File 'lib/plivo/resources/powerpacks.rb', line 303 def initialize(client, = nil) @_name = 'Numberpool' @_identifier_string = 'number_pool_id' super end |
Instance Method Details
#numbers ⇒ Object
309 310 311 312 |
# File 'lib/plivo/resources/powerpacks.rb', line 309 def numbers = {'number_pool_id' => @number_pool_id} Numbers.new(@_client, {resource_json: }) end |