class Twilio::REST::Api::V2010::AccountContext::CallContext::FeedbackPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the FeedbackPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [FeedbackPage] FeedbackPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb 46 def initialize(version, response, solution) 47 super(version, response) 48 49 # Path Solution 50 @solution = solution 51 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of FeedbackInstance
@param [Hash] payload Payload response from the API @return [FeedbackInstance] FeedbackInstance
# File lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb 57 def get_instance(payload) 58 FeedbackInstance.new( 59 @version, 60 payload, 61 account_sid: @solution[:account_sid], 62 call_sid: @solution[:call_sid], 63 ) 64 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb 68 def to_s 69 '<Twilio.Api.V2010.FeedbackPage>' 70 end