lib/twilio-ruby/rest/messaging/v1.rb in twilio-ruby-5.31.4 vs lib/twilio-ruby/rest/messaging/v1.rb in twilio-ruby-5.31.5
- old
+ new
@@ -14,12 +14,10 @@
# Initialize the V1 version of Messaging
def initialize(domain)
super
@version = 'v1'
@services = nil
- @sessions = nil
- @webhooks = nil
end
##
# @param [String] sid The SID of the Service resource to fetch.
# @return [Twilio::REST::Messaging::V1::ServiceContext] if sid was passed.
@@ -30,29 +28,9 @@
elsif sid == :unset
@services ||= ServiceList.new self
else
ServiceContext.new(self, sid)
end
- end
-
- ##
- # @param [String] sid The SID of the Session resource to fetch.
- # @return [Twilio::REST::Messaging::V1::SessionContext] if sid was passed.
- # @return [Twilio::REST::Messaging::V1::SessionList]
- def sessions(sid=:unset)
- if sid.nil?
- raise ArgumentError, 'sid cannot be nil'
- elsif sid == :unset
- @sessions ||= SessionList.new self
- else
- SessionContext.new(self, sid)
- end
- end
-
- ##
- # @return [Twilio::REST::Messaging::V1::WebhookContext]
- def webhooks
- @webhooks ||= WebhookContext.new self
end
##
# Provide a user friendly representation
def to_s
\ No newline at end of file