lib/twilio-ruby/rest/messaging/v1.rb in twilio-ruby-5.50.0 vs lib/twilio-ruby/rest/messaging/v1.rb in twilio-ruby-5.51.0
- old
+ new
@@ -15,11 +15,13 @@
def initialize(domain)
super
@version = 'v1'
@brand_registrations = nil
@deactivations = nil
+ @external_campaign = nil
@services = nil
+ @usecases = nil
end
##
# @param [String] sid The SID of the Brand Registration resource to fetch.
# @return [Twilio::REST::Messaging::V1::BrandRegistrationContext] if sid was passed.
@@ -40,10 +42,16 @@
def deactivations
@deactivations ||= DeactivationsContext.new self
end
##
+ # @return [Twilio::REST::Messaging::V1::ExternalCampaignContext]
+ def external_campaign
+ @external_campaign ||= ExternalCampaignList.new self
+ end
+
+ ##
# @param [String] sid The SID of the Service resource to fetch.
# @return [Twilio::REST::Messaging::V1::ServiceContext] if sid was passed.
# @return [Twilio::REST::Messaging::V1::ServiceList]
def services(sid=:unset)
if sid.nil?
@@ -52,9 +60,15 @@
if sid == :unset
@services ||= ServiceList.new self
else
ServiceContext.new(self, sid)
end
+ end
+
+ ##
+ # @return [Twilio::REST::Messaging::V1::UsecaseContext]
+ def usecases
+ @usecases ||= UsecaseList.new self
end
##
# Provide a user friendly representation
def to_s
\ No newline at end of file