Class: TwilioResource::LocalIncomingPhoneNumber

Inherits:
IncomingPhoneNumber show all
Defined in:
lib/twilio_resource/local_incoming_phone_number.rb

Overview

Represents a Twilio-controlled “local” phone number that can receive incoming phone calls. If there are no numbers available in the specified area code, #save will throw a TwilioResource::NoPhoneNumbersFoundException. Documentation is at www.twilio.com/docs/api/2008-08-01/rest/incoming-phone-numbers

Class Method Summary collapse

Methods inherited from Base

collection_path, custom_method_collection_url, element_name, element_path, query_string, #save

Class Method Details

.association_prefix(options) ⇒ Object



12
13
14
# File 'lib/twilio_resource/local_incoming_phone_number.rb', line 12

def self.association_prefix(options)
  super(options) + superclass.collection_name + "/"
end

.collection_nameObject



8
9
10
# File 'lib/twilio_resource/local_incoming_phone_number.rb', line 8

def self.collection_name
  'Local'
end