module Vnstat::Result::DateDelegation

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

Public Instance Methods

day() click to toggle source

The day the result was captured on.

@return [Integer]

# File lib/vnstat/result/date_delegation.rb, line 28
def day
  date.day
end
month() click to toggle source

The month the result was captured in.

@return [Integer]

# File lib/vnstat/result/date_delegation.rb, line 20
def month
  date.month
end
year() click to toggle source

The year the result was captured in.

@return [Integer]

# File lib/vnstat/result/date_delegation.rb, line 12
def year
  date.year
end