lib/twilio/available_phone_numbers.rb in twilio-3.1.0 vs lib/twilio/available_phone_numbers.rb in twilio-3.1.1
- old
+ new
@@ -20,11 +20,13 @@
:Contains => opts[:contains],
:NearLatLong => opts[:near_lat_long],
:NearNumber => opts[:near_number],
:InLata => opts[:in_lata],
:InRateCenter => opts[:in_rate_center],
- :Distance => opts[:distance]
+ :Distance => opts[:distance],
+ :Page => opts[:page],
+ :PageSize => opts[:page_size]
}.reject {|k,v| v == nil} unless opts.empty?
Twilio.get("/AvailablePhoneNumbers/#{iso_country_code}/#{resource}", :query => params)
end
@@ -37,17 +39,22 @@
# :near_lat_long
# :near_number
# :in_lata
# :in_rate_center
# :distance
+ # :page
+ # :page_size
def search_local(opts ={})
opts = {:resource => 'Local'}.merge(opts)
search(opts)
end
# The search_toll_free method searches for available toll-free numbers
# Search Options
+ # :area_code
# :contains
+ # :page
+ # :page_size
def search_toll_free(opts ={})
opts = {:resource => 'TollFree'}.merge(opts)
search(opts)
end
end