class Twilio::REST::Chat::V2::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/v2/service/channel/member.rb 197 def initialize(version, response, solution) 198 super(version, response) 199 200 # Path Solution 201 @solution = solution 202 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/v2/service/channel/member.rb 208 def get_instance(payload) 209 MemberInstance.new( 210 @version, 211 payload, 212 service_sid: @solution[:service_sid], 213 channel_sid: @solution[:channel_sid], 214 ) 215 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/chat/v2/service/channel/member.rb 219 def to_s 220 '<Twilio.Chat.V2.MemberPage>' 221 end