Module: Vnstat::Result::DateDelegation

Included in:
Day, Hour, Minute
Defined in:
lib/vnstat/result/date_delegation.rb

Overview

A module that is included by result types that contain date information.

Instance Method Summary collapse

Instance Method Details

#dayInteger

The day the result was captured on.

Returns:

  • (Integer)


28
29
30
# File 'lib/vnstat/result/date_delegation.rb', line 28

def day
  date.day
end

#monthInteger

The month the result was captured in.

Returns:

  • (Integer)


20
21
22
# File 'lib/vnstat/result/date_delegation.rb', line 20

def month
  date.month
end

#yearInteger

The year the result was captured in.

Returns:

  • (Integer)


12
13
14
# File 'lib/vnstat/result/date_delegation.rb', line 12

def year
  date.year
end