class Twilio::REST::IpMessaging::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/ip_messaging/v2/service/channel/member.rb
162 def initialize(version, response, solution)
163   super(version, response)
164 
165   # Path Solution
166   @solution = solution
167 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/ip_messaging/v2/service/channel/member.rb
173 def get_instance(payload)
174   MemberInstance.new(
175       @version,
176       payload,
177       service_sid: @solution[:service_sid],
178       channel_sid: @solution[:channel_sid],
179   )
180 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb
184 def to_s
185   '<Twilio.IpMessaging.V2.MemberPage>'
186 end