lib/vnstat.rb in vnstat-ruby-2.0.0 vs lib/vnstat.rb in vnstat-ruby-3.0.0
- old
+ new
@@ -12,11 +12,10 @@
autoload :Document, 'vnstat/document'
autoload :Interface, 'vnstat/interface'
autoload :InterfaceCollection, 'vnstat/interface_collection'
autoload :Parser, 'vnstat/parser'
autoload :Result, 'vnstat/result'
- autoload :SystemCall, 'vnstat/system_call'
autoload :Traffic, 'vnstat/traffic'
autoload :Utils, 'vnstat/utils'
autoload :Error, 'vnstat/error'
autoload :ExecutableNotFound, 'vnstat/errors/executable_not_found'
@@ -55,20 +54,9 @@
# Returns traffic information for all known interfaces.
#
# @return [InterfaceCollection]
def interfaces
InterfaceCollection.open
- end
-
- ##
- # Returns information for the currently installed version of vnstat.
- #
- # @deprecated Please use {#cli_version} instead.
- # @return [String]
- def version
- warn '[DEPRECATION] `Vnstat.version` is deprecated. Please use ' \
- '`Vnstat.cli_version` instead.'
- cli_version
end
##
# Returns information for the currently installed version of vnstat.
#