Class: Vnstat::Traffic::Monthly
- Defined in:
- lib/vnstat/traffic/monthly.rb
Overview
A class encapsulating monthly tracking information.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#[](year, month) ⇒ Result::Month
Fetches a single Result::Month from the collection.
Methods inherited from Base
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.
14 15 16 |
# File 'lib/vnstat/traffic/monthly.rb', line 14 def [](year, month) entries_hash[[year, month]] end |