lib/twilio-ruby/rest/api/v2010/account.rb in twilio-ruby-5.0.0.rc16 vs lib/twilio-ruby/rest/api/v2010/account.rb in twilio-ruby-5.0.0.rc17

- old
+ new

@@ -217,11 +217,11 @@ @queues = nil @recordings = nil @sandbox = nil @signing_keys = nil @sip = nil - @sms = nil + @short_codes = nil @tokens = nil @transcriptions = nil @usage = nil @validation_requests = nil end @@ -652,21 +652,29 @@ @sip end ## - # Access the sms - # @return [SmsList] SmsList - def sms - unless @sms - @sms = SmsList.new( + # Access the short_codes + # @return [ShortCodeList] ShortCodeList + def short_codes(sid=:unset) + if sid != :unset + return ShortCodeContext.new( @version, + @solution[:sid], + sid, + ) + end + + unless @short_codes + @short_codes = ShortCodeList.new( + @version, account_sid: @solution[:sid], ) end - @sms + @short_codes end ## # Access the tokens # @return [TokenList] TokenList @@ -979,13 +987,13 @@ def sip context.sip end ## - # Access the sms - # @return [sms] sms - def sms - context.sms + # Access the short_codes + # @return [short_codes] short_codes + def short_codes + context.short_codes end ## # Access the tokens # @return [tokens] tokens \ No newline at end of file