lib/vnstat/result/minute.rb in vnstat-ruby-1.1.0 vs lib/vnstat/result/minute.rb in vnstat-ruby-2.0.0

- old
+ new

@@ -1,11 +1,14 @@ +# frozen_string_literal: true + module Vnstat class Result ## # A class representing a tracking result for a specific minute. # - # @attr_reader [DateTime] time The time the result was captured at. + # @!attribute [r] time + # @return [DateTime] The time the result was captured at. class Minute < Result include DateDelegation include TimeComparable attr_reader :time @@ -53,10 +56,10 @@ ## # The minute the result was captured. # # @return [Integer] def minute - time.minute + time.min end end end end