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

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.



256
257
258
259
260
# File 'lib/plivo/resources/powerpacks.rb', line 256

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

Instance Method Details

#numbersObject



262
263
264
265
# File 'lib/plivo/resources/powerpacks.rb', line 262

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

#shortcodesObject



266
267
268
269
# File 'lib/plivo/resources/powerpacks.rb', line 266

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