class Twilio::REST::Chat::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/chat/v1/service/role.rb 148 def initialize(version, response, solution) 149 super(version, response) 150 151 # Path Solution 152 @solution = solution 153 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/chat/v1/service/role.rb 159 def get_instance(payload) 160 RoleInstance.new(@version, payload, service_sid: @solution[:service_sid], ) 161 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/chat/v1/service/role.rb 165 def to_s 166 '<Twilio.Chat.V1.RolePage>' 167 end