class Twilio::REST::Api::V2010::AccountContext::MessageContext::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/message/feedback.rb 68 def initialize(version, response, solution) 69 super(version, response) 70 71 # Path Solution 72 @solution = solution 73 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/message/feedback.rb 79 def get_instance(payload) 80 FeedbackInstance.new( 81 @version, 82 payload, 83 account_sid: @solution[:account_sid], 84 message_sid: @solution[:message_sid], 85 ) 86 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb 90 def to_s 91 '<Twilio.Api.V2010.FeedbackPage>' 92 end