lib/vnstat/result/hour.rb in vnstat-ruby-1.1.0 vs lib/vnstat/result/hour.rb in vnstat-ruby-2.0.0
- old
+ new
@@ -1,11 +1,15 @@
+# frozen_string_literal: true
+
module Vnstat
class Result
##
# A class representing a tracking result for a specific hour.
#
- # @attr_reader [Date] date The date the result was captured on.
- # @attr_reader [Integer] hour The hour the result was captured at.
+ # @!attribute [r] date
+ # @return [Date] The date the result was captured on.
+ # @!attribute [r] hour
+ # @return [Integer] The hour the result was captured at.
class Hour < Result
include DateDelegation
include TimeComparable
attr_reader :date, :hour