class Twilio::REST::Conversations::V1::ServiceContext::ConversationContext::MessagePage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the MessagePage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [MessagePage] MessagePage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb 172 def initialize(version, response, solution) 173 super(version, response) 174 175 # Path Solution 176 @solution = solution 177 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of MessageInstance
@param [Hash] payload Payload response from the API @return [MessageInstance] MessageInstance
# File lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb 183 def get_instance(payload) 184 MessageInstance.new( 185 @version, 186 payload, 187 chat_service_sid: @solution[:chat_service_sid], 188 conversation_sid: @solution[:conversation_sid], 189 ) 190 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb 194 def to_s 195 '<Twilio.Conversations.V1.MessagePage>' 196 end