Module: Vnstat::Result::DateDelegation
Overview
A module that is included by result types that contain date information.
Instance Method Summary collapse
-
#day ⇒ Integer
The day the result was captured on.
-
#month ⇒ Integer
The month the result was captured in.
-
#year ⇒ Integer
The year the result was captured in.
Instance Method Details
#day ⇒ Integer
The day the result was captured on.
28 29 30 |
# File 'lib/vnstat/result/date_delegation.rb', line 28 def day date.day end |
#month ⇒ Integer
The month the result was captured in.
20 21 22 |
# File 'lib/vnstat/result/date_delegation.rb', line 20 def month date.month end |
#year ⇒ Integer
The year the result was captured in.
12 13 14 |
# File 'lib/vnstat/result/date_delegation.rb', line 12 def year date.year end |