Class: Twilio::REST::Preview::TrustedComms::BrandsInformationContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Preview::TrustedComms::BrandsInformationContext
- Defined in:
- lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
Overview
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 [email protected]
Instance Method Summary collapse
-
#fetch(if_none_match: :unset) ⇒ BrandsInformationInstance
Fetch the BrandsInformationInstance.
-
#initialize(version) ⇒ BrandsInformationContext
constructor
Initialize the BrandsInformationContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ BrandsInformationContext
Initialize the BrandsInformationContext
72 73 74 75 76 77 78 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb', line 72 def initialize(version) super(version) # Path Solution @solution = {} @uri = "/BrandsInformation" end |
Instance Method Details
#fetch(if_none_match: :unset) ⇒ BrandsInformationInstance
Fetch the BrandsInformationInstance
86 87 88 89 90 91 92 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb', line 86 def fetch(if_none_match: :unset) headers = Twilio::Values.of({'If-None-Match' => if_none_match, }) payload = @version.fetch('GET', @uri, headers: headers) BrandsInformationInstance.new(@version, payload, ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
103 104 105 106 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb', line 103 def inspect context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Preview.TrustedComms.BrandsInformationContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
96 97 98 99 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb', line 96 def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Preview.TrustedComms.BrandsInformationContext #{context}>" end |