class Twilio::REST::Pricing::V2::VoicePage

Public Class Methods

new(version, response, solution) click to toggle source

Initialize the VoicePage @param [Version] version Version that contains the resource @param [Response] response Response from the API @param [Hash] solution Path solution for the resource @return [VoicePage] VoicePage

Calls superclass method Twilio::REST::Page::new
   # File lib/twilio-ruby/rest/pricing/v2/voice.rb
78 def initialize(version, response, solution)
79   super(version, response)
80 
81   # Path Solution
82   @solution = solution
83 end

Public Instance Methods

get_instance(payload) click to toggle source

Build an instance of VoiceInstance @param [Hash] payload Payload response from the API @return [VoiceInstance] VoiceInstance

   # File lib/twilio-ruby/rest/pricing/v2/voice.rb
89 def get_instance(payload)
90   VoiceInstance.new(@version, payload, )
91 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/pricing/v2/voice.rb
95 def to_s
96   '<Twilio.Pricing.V2.VoicePage>'
97 end