class Twilio::REST::Preview::TrustedComms::BrandedChannelContext::ChannelPage
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the ChannelPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [ChannelPage] ChannelPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb 60 def initialize(version, response, solution) 61 super(version, response) 62 63 # Path Solution 64 @solution = solution 65 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of ChannelInstance
@param [Hash] payload Payload response from the API @return [ChannelInstance] ChannelInstance
# File lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb 71 def get_instance(payload) 72 ChannelInstance.new(@version, payload, branded_channel_sid: @solution[:branded_channel_sid], ) 73 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb 77 def to_s 78 '<Twilio.Preview.TrustedComms.ChannelPage>' 79 end