lib/twilio-ruby/rest/wireless/v1.rb in twilio-ruby-5.28.0 vs lib/twilio-ruby/rest/wireless/v1.rb in twilio-ruby-5.29.0

- old
+ new

@@ -13,17 +13,23 @@ ## # Initialize the V1 version of Wireless def initialize(domain) super @version = 'v1' + @usage_records = nil @commands = nil @rate_plans = nil - @usage_records = nil @sims = nil end ## + # @return [Twilio::REST::Wireless::V1::UsageRecordContext] + def usage_records + @usage_records ||= UsageRecordList.new self + end + + ## # @param [String] sid The SID of the Command resource to fetch. # @return [Twilio::REST::Wireless::V1::CommandContext] if sid was passed. # @return [Twilio::REST::Wireless::V1::CommandList] def commands(sid=:unset) if sid.nil? @@ -48,16 +54,10 @@ RatePlanContext.new(self, sid) end end ## - # @return [Twilio::REST::Wireless::V1::UsageRecordContext] - def usage_records - @usage_records ||= UsageRecordList.new self - end - - ## - # @param [String] sid The SID of the Sim resource to fetch. + # @param [String] sid The SID or the `unique_name` of the Sim resource to fetch. # @return [Twilio::REST::Wireless::V1::SimContext] if sid was passed. # @return [Twilio::REST::Wireless::V1::SimList] def sims(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' \ No newline at end of file