Class: Vnstat::Traffic::Monthly

Inherits:
Base
  • Object
show all
Defined in:
lib/vnstat/traffic/monthly.rb

Overview

A class encapsulating monthly tracking information.

Instance Attribute Summary

Attributes inherited from Base

#interface

Instance Method Summary collapse

Methods inherited from Base

#each, #initialize

Constructor Details

This class inherits a constructor from Vnstat::Traffic::Base

Instance Method Details

#[](year, month) ⇒ Result::Month

Fetches a single Result::Month from the collection.

Parameters:

  • year (Integer)
  • month (Integer)

Returns:



14
15
16
# File 'lib/vnstat/traffic/monthly.rb', line 14

def [](year, month)
  entries_hash[[year, month]]
end