lib/twilio-ruby/rest/api/v2010.rb in twilio-ruby-5.0.0.rc26 vs lib/twilio-ruby/rest/api/v2010.rb in twilio-ruby-5.0.0
- old
+ new
@@ -15,9 +15,14 @@
@version = '2010-04-01'
@accounts = nil
@account = nil
end
+ ##
+ # @param [String] sid The Account Sid that uniquely identifies the account to
+ # fetch
+ # @return [Twilio::REST::Api::V2010::AccountInstance] if sid was passed.
+ # @return [Twilio::REST::Api::V2010::AccountList]
def accounts(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
elsif sid == :unset
@accounts ||= AccountList.new self
\ No newline at end of file