class Twilio::REST::Chat::V1::ServiceContext::ChannelContext::InvitePage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the InvitePage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [InvitePage] InvitePage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/chat/v1/service/channel/invite.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 InviteInstance
@param [Hash] payload Payload response from the API @return [InviteInstance] InviteInstance
# File lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb 179 def get_instance(payload) 180 InviteInstance.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/invite.rb 190 def to_s 191 '<Twilio.Chat.V1.InvitePage>' 192 end