class Twilio::REST::Chat::V1::ServiceContext::ChannelContext::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/chat/v1/service/channel/message.rb 159 def initialize(version, response, solution) 160 super(version, response) 161 162 # Path Solution 163 @solution = solution 164 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/chat/v1/service/channel/message.rb 170 def get_instance(payload) 171 MessageInstance.new( 172 @version, 173 payload, 174 service_sid: @solution[:service_sid], 175 channel_sid: @solution[:channel_sid], 176 ) 177 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/chat/v1/service/channel/message.rb 181 def to_s 182 '<Twilio.Chat.V1.MessagePage>' 183 end