lib/twilio-ruby/rest/wireless/v1.rb in twilio-ruby-5.0.0.rc24 vs lib/twilio-ruby/rest/wireless/v1.rb in twilio-ruby-5.0.0.rc25

- old
+ new

@@ -17,26 +17,32 @@ @rate_plans = nil @sims = nil end def commands(sid=:unset) - if sid == :unset + if sid.nil? + raise ArgumentError, 'sid cannot be nil' + elsif sid == :unset @commands ||= CommandList.new self else CommandContext.new(self, sid) end end def rate_plans(sid=:unset) - if sid == :unset + if sid.nil? + raise ArgumentError, 'sid cannot be nil' + elsif sid == :unset @rate_plans ||= RatePlanList.new self else RatePlanContext.new(self, sid) end end def sims(sid=:unset) - if sid == :unset + if sid.nil? + raise ArgumentError, 'sid cannot be nil' + elsif sid == :unset @sims ||= SimList.new self else SimContext.new(self, sid) end end \ No newline at end of file