Class: Easee::MeterReading
- Inherits:
-
Object
- Object
- Easee::MeterReading
- Defined in:
- lib/easee/meter_reading.rb
Instance Attribute Summary collapse
-
#reading_kwh ⇒ Object
readonly
Returns the value of attribute reading_kwh.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(reading_kwh:, timestamp:) ⇒ MeterReading
constructor
A new instance of MeterReading.
Constructor Details
#initialize(reading_kwh:, timestamp:) ⇒ MeterReading
Returns a new instance of MeterReading.
5 6 7 8 |
# File 'lib/easee/meter_reading.rb', line 5 def initialize(reading_kwh:, timestamp:) @reading_kwh = reading_kwh @timestamp = end |
Instance Attribute Details
#reading_kwh ⇒ Object (readonly)
Returns the value of attribute reading_kwh.
3 4 5 |
# File 'lib/easee/meter_reading.rb', line 3 def reading_kwh @reading_kwh end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
3 4 5 |
# File 'lib/easee/meter_reading.rb', line 3 def @timestamp end |