Class: Twilio::REST::Messaging::V1::BrandRegistrationContext::BrandVettingContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Messaging::V1::BrandRegistrationContext::BrandVettingContext
- Defined in:
- lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb
Overview
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
Instance Method Summary collapse
-
#fetch ⇒ BrandVettingInstance
Fetch the BrandVettingInstance.
-
#initialize(version, brand_sid, brand_vetting_sid) ⇒ BrandVettingContext
constructor
Initialize the BrandVettingContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, brand_sid, brand_vetting_sid) ⇒ BrandVettingContext
Initialize the BrandVettingContext
166 167 168 169 170 171 172 173 174 |
# File 'lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb', line 166 def initialize(version, brand_sid, brand_vetting_sid) super(version) # Path Solution @solution = { brand_sid: brand_sid, brand_vetting_sid: brand_vetting_sid, } @uri = "/a2p/BrandRegistrations/#{@solution[:brand_sid]}/Vettings/#{@solution[:brand_vetting_sid]}" end |
Instance Method Details
#fetch ⇒ BrandVettingInstance
Fetch the BrandVettingInstance
178 179 180 181 182 183 184 185 186 187 |
# File 'lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb', line 178 def fetch payload = @version.fetch('GET', @uri) BrandVettingInstance.new( @version, payload, brand_sid: @solution[:brand_sid], brand_vetting_sid: @solution[:brand_vetting_sid], ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
199 200 201 202 |
# File 'lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb', line 199 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Messaging.V1.BrandVettingContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
192 193 194 195 |
# File 'lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb', line 192 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Messaging.V1.BrandVettingContext #{context}>" end |