class Twilio::REST::Preview::TrustedComms::BrandsInformationContext

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) click to toggle source

Initialize the BrandsInformationContext @param [Version] version Version that contains the resource @return [BrandsInformationContext] BrandsInformationContext

Calls superclass method Twilio::REST::InstanceContext::new
   # File lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
72 def initialize(version)
73   super(version)
74 
75   # Path Solution
76   @solution = {}
77   @uri = "/BrandsInformation"
78 end

Public Instance Methods

fetch(if_none_match: :unset) click to toggle source

Fetch the BrandsInformationInstance @param [String] if_none_match Standard `If-None-Match` HTTP header. For more

information visit:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match.

@return [BrandsInformationInstance] Fetched BrandsInformationInstance

   # File lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
86 def fetch(if_none_match: :unset)
87   headers = Twilio::Values.of({'If-None-Match' => if_none_match, })
88 
89   payload = @version.fetch('GET', @uri, headers: headers)
90 
91   BrandsInformationInstance.new(@version, payload, )
92 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
103 def inspect
104   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
105   "#<Twilio.Preview.TrustedComms.BrandsInformationContext #{context}>"
106 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
96 def to_s
97   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
98   "#<Twilio.Preview.TrustedComms.BrandsInformationContext #{context}>"
99 end