lib/twilio-ruby/rest/messaging/v1.rb in twilio-ruby-5.25.1 vs lib/twilio-ruby/rest/messaging/v1.rb in twilio-ruby-5.25.2

- old
+ new

@@ -13,40 +13,40 @@ ## # Initialize the V1 version of Messaging def initialize(domain) super @version = 'v1' - @sessions = nil @services = nil + @sessions = nil @webhooks = nil end ## - # @param [String] sid A 34 character string that uniquely identifies this - # resource. - # @return [Twilio::REST::Messaging::V1::SessionContext] if sid was passed. - # @return [Twilio::REST::Messaging::V1::SessionList] - def sessions(sid=:unset) + # @param [String] sid The sid + # @return [Twilio::REST::Messaging::V1::ServiceContext] if sid was passed. + # @return [Twilio::REST::Messaging::V1::ServiceList] + def services(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' elsif sid == :unset - @sessions ||= SessionList.new self + @services ||= ServiceList.new self else - SessionContext.new(self, sid) + ServiceContext.new(self, sid) end end ## - # @param [String] sid The sid - # @return [Twilio::REST::Messaging::V1::ServiceContext] if sid was passed. - # @return [Twilio::REST::Messaging::V1::ServiceList] - def services(sid=:unset) + # @param [String] sid A 34 character string that uniquely identifies this + # resource. + # @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 - @services ||= ServiceList.new self + @sessions ||= SessionList.new self else - ServiceContext.new(self, sid) + SessionContext.new(self, sid) end end ## # @return [Twilio::REST::Messaging::V1::WebhookContext] \ No newline at end of file