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
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
174 175 176 177 178 179 180 181 182 |
# File 'lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb', line 174 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
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb', line 186 def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.fetch('GET', @uri, headers: headers) 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
213 214 215 216 |
# File 'lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb', line 213 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Messaging.V1.BrandVettingContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
206 207 208 209 |
# File 'lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb', line 206 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Messaging.V1.BrandVettingContext #{context}>" end |