Sha256: 915439a3881936c6fce3a10cdb5e6bbd1f3ffe65000f15f554c879d7b3100a10

Contents?: true

Size: 417 Bytes

Versions: 6

Compression:

Stored size: 417 Bytes

Contents

module Twilio
  # An IncomingPhoneNumber resource represents a phone number given to you by 
  # Twilio to receive incoming phone calls. 
  class IncomingPhoneNumber < TwilioObject
    def list(optional = {})
      self.connection.class.get("/IncomingPhoneNumbers", :query => optional) 
    end
    
    def get(incoming_sid)
      self.connection.class.get("/IncomingPhoneNumbers/#{incoming_sid}") 
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
webficient-twilio-1.3.0 lib/twilio/incoming_phone_number.rb
webficient-twilio-1.4.0 lib/twilio/incoming_phone_number.rb
webficient-twilio-2.0.0 lib/twilio/incoming_phone_number.rb
webficient-twilio-2.1.0 lib/twilio/incoming_phone_number.rb
webficient-twilio-2.2.0 lib/twilio/incoming_phone_number.rb
twilio-1.4.0 lib/twilio/incoming_phone_number.rb