lib/twilio-ruby/rest/api/v2010.rb in twilio-ruby-5.0.0.rc24 vs lib/twilio-ruby/rest/api/v2010.rb in twilio-ruby-5.0.0.rc25

- old
+ new

@@ -16,10 +16,12 @@ @accounts = nil @account = nil end def accounts(sid=:unset) - if sid == :unset + if sid.nil? + raise ArgumentError, 'sid cannot be nil' + elsif sid == :unset @accounts ||= AccountList.new self else AccountContext.new(self, sid) end end \ No newline at end of file