class Twilio::REST::Chat::V1::ServiceContext::UserPage

Public Class Methods

new(version, response, solution) click to toggle source

Initialize the UserPage @param [Version] version Version that contains the resource @param [Response] response Response from the API @param [Hash] solution Path solution for the resource @return [UserPage] UserPage

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/chat/v1/service/user.rb
152 def initialize(version, response, solution)
153   super(version, response)
154 
155   # Path Solution
156   @solution = solution
157 end

Public Instance Methods

get_instance(payload) click to toggle source

Build an instance of UserInstance @param [Hash] payload Payload response from the API @return [UserInstance] UserInstance

    # File lib/twilio-ruby/rest/chat/v1/service/user.rb
163 def get_instance(payload)
164   UserInstance.new(@version, payload, service_sid: @solution[:service_sid], )
165 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/chat/v1/service/user.rb
169 def to_s
170   '<Twilio.Chat.V1.UserPage>'
171 end