lib/vnstat/interface.rb in vnstat-ruby-1.1.0 vs lib/vnstat/interface.rb in vnstat-ruby-2.0.0
- old
+ new
@@ -1,9 +1,12 @@
+# frozen_string_literal: true
+
module Vnstat
##
# A class encapsulating traffic information for a specific network interface.
#
- # @attr_reader [String] id The network interface identifier.
+ # @!attribute [r] id
+ # @return [String] The network interface identifier.
class Interface < Document
attr_reader :id
##
# Initializes the {Interface}.