Class: Easee::MeterReading

Inherits:
Object
  • Object
show all
Defined in:
lib/easee/meter_reading.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = timestamp
end

Instance Attribute Details

#reading_kwhObject (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

#timestampObject (readonly)

Returns the value of attribute timestamp.



3
4
5
# File 'lib/easee/meter_reading.rb', line 3

def timestamp
  @timestamp
end