class Twilio::REST::Chat::V1::ServiceContext::ChannelContext::MemberPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the MemberPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [MemberPage] MemberPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/chat/v1/service/channel/member.rb 168 def initialize(version, response, solution) 169 super(version, response) 170 171 # Path Solution 172 @solution = solution 173 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of MemberInstance
@param [Hash] payload Payload response from the API @return [MemberInstance] MemberInstance
# File lib/twilio-ruby/rest/chat/v1/service/channel/member.rb 179 def get_instance(payload) 180 MemberInstance.new( 181 @version, 182 payload, 183 service_sid: @solution[:service_sid], 184 channel_sid: @solution[:channel_sid], 185 ) 186 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/chat/v1/service/channel/member.rb 190 def to_s 191 '<Twilio.Chat.V1.MemberPage>' 192 end