lib/twilio/incoming_phone_number.rb in webficient-twilio-2.2.0 vs lib/twilio/incoming_phone_number.rb in webficient-twilio-2.3.0
- old
+ new
@@ -1,13 +1,16 @@
module Twilio
# An IncomingPhoneNumber resource represents a phone number given to you by
# Twilio to receive incoming phone calls.
+ # Example:
+ # Twilio.connect('my_twilio_sid', 'my_auth_token')
+ # Twilio::IncomingPhoneNumber.list
class IncomingPhoneNumber < TwilioObject
def list(optional = {})
- self.connection.class.get("/IncomingPhoneNumbers", :query => optional)
+ Twilio.get("/IncomingPhoneNumbers", :query => optional)
end
def get(incoming_sid)
- self.connection.class.get("/IncomingPhoneNumbers/#{incoming_sid}")
+ Twilio.get("/IncomingPhoneNumbers/#{incoming_sid}")
end
end
end
\ No newline at end of file