Skip to content
Browse files

add support for extended attributes on the local phone number

  • Loading branch information...
1 parent 5e940fe commit 9e43ecf0d65afd1550e4898d70f5e55c895ed762 Jeff Wigal committed May 21, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/twilio/local_phone_number.rb
View
4 lib/twilio/local_phone_number.rb
@@ -5,13 +5,13 @@ module Twilio
# Twilio.connect('my_twilio_sid', 'my_auth_token')
# Twilio::LocalPhoneNumber.list
class LocalPhoneNumber < TwilioObject
- def create(url, area_code = nil, method = 'POST', friendly_name = nil)
+ def create(url, area_code = nil, method = 'POST', friendly_name = nil, options = {})
Twilio.post("/IncomingPhoneNumbers/Local", :body => {
:Url => url,
:AreaCode => area_code,
:Method => method,
:FriendlyName => friendly_name
- })
+ }.merge(options))
end
def list

0 comments on commit 9e43ecf

Please sign in to comment.
Something went wrong with that request. Please try again.