class Plivo::Resources::NumberPool

Public Class Methods

new(client, options = nil) click to toggle source
Calls superclass method Plivo::Base::Resource::new
# File lib/plivo/resources/powerpacks.rb, line 338
def initialize(client, options = nil)
  @_name = 'Numberpool'
  @_identifier_string = 'number_pool_id'
  super
end

Public Instance Methods

numbers() click to toggle source
# 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() click to toggle source
# 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() click to toggle source
# File lib/plivo/resources/powerpacks.rb, line 352
def tollfree
  options = {'number_pool_id' => @number_pool_id}
  Tollfree.new(@_client, {resource_json: options})
end