Class: Twilio::REST::Preview::TrustedComms::BrandsInformationContext

Inherits:
InstanceContext
  • Object
show all
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

Constructor Details

#initialize(version) ⇒ BrandsInformationContext

Initialize the BrandsInformationContext

Parameters:

  • version (Version)

    Version that contains the resource


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

Parameters:

Returns:


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

#inspectObject

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_sObject

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