lib/vnstat/document.rb in vnstat-ruby-1.1.0 vs lib/vnstat/document.rb in vnstat-ruby-2.0.0

- old
+ new

@@ -1,8 +1,13 @@ +# frozen_string_literal: true + +require 'nokogiri' + module Vnstat # A class encapsulating document data. # - # @attr_reader [Nokogiri::XML::Document] data The underlying XML document. + # @!attribute [r] data + # @return [Nokogiri::XML::Document] The underlying XML document. class Document ## # Initializes the document. # # @param [String] data The raw XML data.