class Twilio::REST::Conversations::V1::ServiceContext::ConversationContext::ParticipantPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the ParticipantPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [ParticipantPage] ParticipantPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb 182 def initialize(version, response, solution) 183 super(version, response) 184 185 # Path Solution 186 @solution = solution 187 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of ParticipantInstance
@param [Hash] payload Payload response from the API @return [ParticipantInstance] ParticipantInstance
# File lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb 193 def get_instance(payload) 194 ParticipantInstance.new( 195 @version, 196 payload, 197 chat_service_sid: @solution[:chat_service_sid], 198 conversation_sid: @solution[:conversation_sid], 199 ) 200 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb 204 def to_s 205 '<Twilio.Conversations.V1.ParticipantPage>' 206 end