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:
object
Represents 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
Consumption
from a dictionary.to_dict
([convert_values])Returns a dictionary containing the contents of the
Consumption
object.-
classmethod
from_dict
(d) Construct an instance of
Consumption
from a dictionary.
-
to_dict
(convert_values=False) Returns a dictionary containing the contents of the
Consumption
object.