lib/twilio-ruby/rest/pricing.rb in twilio-ruby-5.12.1 vs lib/twilio-ruby/rest/pricing.rb in twilio-ruby-5.12.2

- old
+ new

@@ -18,19 +18,26 @@ @host = 'pricing.twilio.com' @port = 443 # Versions @v1 = nil + @v2 = nil end ## # Version v1 of pricing def v1 @v1 ||= V1.new self end ## + # Version v2 of pricing + def v2 + @v2 ||= V2.new self + end + + ## # @return [Twilio::REST::Pricing::V1::MessagingInstance] def messaging self.v1.messaging() end @@ -39,12 +46,12 @@ def phone_numbers self.v1.phone_numbers() end ## - # @return [Twilio::REST::Pricing::V1::VoiceInstance] + # @return [Twilio::REST::Pricing::V2::VoiceInstance] def voice - self.v1.voice() + self.v2.voice() end ## # Provide a user friendly representation def to_s \ No newline at end of file