lib/twilio-ruby/rest/preview/proxy.rb in twilio-ruby-5.0.0.rc24 vs lib/twilio-ruby/rest/preview/proxy.rb in twilio-ruby-5.0.0.rc25
- old
+ new
@@ -15,10 +15,12 @@
@version = 'Proxy'
@services = nil
end
def services(sid=:unset)
- if sid == :unset
+ if sid.nil?
+ raise ArgumentError, 'sid cannot be nil'
+ elsif sid == :unset
@services ||= ServiceList.new self
else
ServiceContext.new(self, sid)
end
end
\ No newline at end of file