Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add support for extended attributes on the local phone number

  • Loading branch information...
commit 9e43ecf0d65afd1550e4898d70f5e55c895ed762 1 parent 5e940fe
Jeff Wigal authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/twilio/local_phone_number.rb
4 lib/twilio/local_phone_number.rb
@@ -5,13 +5,13 @@ module Twilio
5 5 # Twilio.connect('my_twilio_sid', 'my_auth_token')
6 6 # Twilio::LocalPhoneNumber.list
7 7 class LocalPhoneNumber < TwilioObject
8   - def create(url, area_code = nil, method = 'POST', friendly_name = nil)
  8 + def create(url, area_code = nil, method = 'POST', friendly_name = nil, options = {})
9 9 Twilio.post("/IncomingPhoneNumbers/Local", :body => {
10 10 :Url => url,
11 11 :AreaCode => area_code,
12 12 :Method => method,
13 13 :FriendlyName => friendly_name
14   - })
  14 + }.merge(options))
15 15 end
16 16
17 17 def list

0 comments on commit 9e43ecf

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