lib/twilio-ruby/rest/wireless/v1.rb in twilio-ruby-5.25.1 vs lib/twilio-ruby/rest/wireless/v1.rb in twilio-ruby-5.25.2
- 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 A 34 character string that uniquely identifies this
# resource.
# @return [Twilio::REST::Wireless::V1::CommandContext] if sid was passed.
# @return [Twilio::REST::Wireless::V1::CommandList]
def commands(sid=:unset)
@@ -46,15 +52,9 @@
elsif sid == :unset
@rate_plans ||= RatePlanList.new self
else
RatePlanContext.new(self, sid)
end
- end
-
- ##
- # @return [Twilio::REST::Wireless::V1::UsageRecordContext]
- def usage_records
- @usage_records ||= UsageRecordList.new self
end
##
# @param [String] sid A 34 character string that uniquely identifies this
# resource.
\ No newline at end of file