octo_api.consumption¶
Class to represent consumption data.
Classes:
|
Represents the consumption for a given period of time. |
-
class
Consumption(consumption, interval_start, interval_end)[source]¶ Bases:
objectRepresents the consumption for a given period of time.
- Parameters
Attributes:
The consumption.
The end of the time period.
The start of the time period.
Methods:
from_dict(d)Construct an instance of
Consumptionfrom a dictionary.to_dict([convert_values])Returns a dictionary containing the contents of the
Consumptionobject.-
classmethod
from_dict(d)¶ Construct an instance of
Consumptionfrom a dictionary.
-
to_dict(convert_values=False)¶ Returns a dictionary containing the contents of the
Consumptionobject.