Sha256: 349ea585a3922045e09e39e665d16a1840f99500a28b27fb83d2110a08499b6b
Contents?: true
Size: 441 Bytes
Versions: 2
Compression:
Stored size: 441 Bytes
Contents
module Twilio class LocalPhoneNumber < TwilioObject def create(url, area_code = nil, method = 'POST', friendly_name = nil) self.connection.class.post("/IncomingPhoneNumbers/Local", :body => { :Url => url, :AreaCode => area_code, :Method => method, :FriendlyName => friendly_name }) end def list self.connection.class.get("/IncomingPhoneNumbers/Local") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webficient-twilio-1.0.0 | lib/twilio/local_phone_number.rb |
webficient-twilio-1.2.0 | lib/twilio/local_phone_number.rb |