lib/twilio-ruby/rest/pricing/v2/number.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/pricing/v2/number.rb in twilio-ruby-6.11.0
- old
+ new
@@ -16,10 +16,11 @@
module Twilio
module REST
class Pricing < PricingBase
class V2 < Version
class NumberList < ListResource
+
##
# Initialize the NumberList
# @param [Version] version Version that contains the resource
# @return [NumberList] NumberList
def initialize(version)
@@ -63,9 +64,10 @@
)
params = Twilio::Values.of({
'OriginationNumber' => origination_number,
})
+
payload = @version.fetch('GET', @uri, params: params)
NumberInstance.new(
@version,
payload,
destination_number: @solution[:destination_number],