class Twilio::REST::Trunking::V1::TrunkContext::RecordingPage

Public Class Methods

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

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

Calls superclass method Twilio::REST::Page::new
   # File lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb
42 def initialize(version, response, solution)
43   super(version, response)
44 
45   # Path Solution
46   @solution = solution
47 end

Public Instance Methods

get_instance(payload) click to toggle source

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

   # File lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb
53 def get_instance(payload)
54   RecordingInstance.new(@version, payload, trunk_sid: @solution[:trunk_sid], )
55 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb
59 def to_s
60   '<Twilio.Trunking.V1.RecordingPage>'
61 end