Class: Restcomm::REST::AvailablePhoneNumbers

Inherits:
ListResource show all
Defined in:
lib/restcomm-ruby/rest/available_phone_numbers.rb

Instance Method Summary collapse

Methods inherited from ListResource

#create, #get, #inspect, #list, #total

Methods included from Utils

#derestify, #restify

Constructor Details

#initialize(path, client) ⇒ AvailablePhoneNumbers

Returns a new instance of AvailablePhoneNumbers.



4
5
6
7
8
# File 'lib/restcomm-ruby/rest/available_phone_numbers.rb', line 4

def initialize(path, client)
  @path, @client = path, client
  @instance_class = Restcomm::REST::Country
  @list_key, @instance_id_key = 'countries', 'country_code'
end