class Twilio::REST::Conversations::V1::ServiceContext::RolePage

Public Class Methods

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

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

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/conversations/v1/service/role.rb
149 def initialize(version, response, solution)
150   super(version, response)
151 
152   # Path Solution
153   @solution = solution
154 end

Public Instance Methods

get_instance(payload) click to toggle source

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

    # File lib/twilio-ruby/rest/conversations/v1/service/role.rb
160 def get_instance(payload)
161   RoleInstance.new(@version, payload, chat_service_sid: @solution[:chat_service_sid], )
162 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/conversations/v1/service/role.rb
166 def to_s
167   '<Twilio.Conversations.V1.RolePage>'
168 end