class Twilio::REST::Api::V2010::AccountContext::RecordingContext::AddOnResultContext::PayloadPage

Public Class Methods

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

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

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb
134 def initialize(version, response, solution)
135   super(version, response)
136 
137   # Path Solution
138   @solution = solution
139 end

Public Instance Methods

get_instance(payload) click to toggle source

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

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb
145 def get_instance(payload)
146   PayloadInstance.new(
147       @version,
148       payload,
149       account_sid: @solution[:account_sid],
150       reference_sid: @solution[:reference_sid],
151       add_on_result_sid: @solution[:add_on_result_sid],
152   )
153 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb
157 def to_s
158   '<Twilio.Api.V2010.PayloadPage>'
159 end