class Twilio::REST::Conversations::V1::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/conversation/participant.rb 173 def initialize(version, response, solution) 174 super(version, response) 175 176 # Path Solution 177 @solution = solution 178 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/conversation/participant.rb 184 def get_instance(payload) 185 ParticipantInstance.new(@version, payload, conversation_sid: @solution[:conversation_sid], ) 186 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb 190 def to_s 191 '<Twilio.Conversations.V1.ParticipantPage>' 192 end