class Twilio::REST::Preview::TrustedComms::BrandsInformationInstance

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

Initialize the BrandsInformationInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @return [BrandsInformationInstance] BrandsInformationInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
117 def initialize(version, payload)
118   super(version)
119 
120   # Marshaled Properties
121   @properties = {
122       'update_time' => Twilio.deserialize_iso8601_datetime(payload['update_time']),
123       'file_link' => payload['file_link'],
124       'file_link_ttl_in_seconds' => payload['file_link_ttl_in_seconds'],
125       'url' => payload['url'],
126   }
127 
128   # Context
129   @instance_context = nil
130   @params = {}
131 end

Public Instance Methods

context() click to toggle source

Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return [BrandsInformationContext] BrandsInformationContext for this BrandsInformationInstance

    # File lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
137 def context
138   unless @instance_context
139     @instance_context = BrandsInformationContext.new(@version, )
140   end
141   @instance_context
142 end
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
174 def fetch(if_none_match: :unset)
175   context.fetch(if_none_match: if_none_match, )
176 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
187 def inspect
188   values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
189   "<Twilio.Preview.TrustedComms.BrandsInformationInstance #{values}>"
190 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
180 def to_s
181   values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
182   "<Twilio.Preview.TrustedComms.BrandsInformationInstance #{values}>"
183 end
update_time() click to toggle source

@return [Time] Creation time of the information retrieved

    # File lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
146 def update_time
147   @properties['update_time']
148 end
url() click to toggle source

@return [String] The URL of this resource

    # File lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
164 def url
165   @properties['url']
166 end