Class: DmmUtil::Meter

Inherits:
Object
  • Object
show all
Defined in:
lib/dmm_util/meter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(driver) ⇒ Meter

Returns a new instance of Meter.



5
6
7
# File 'lib/dmm_util/meter.rb', line 5

def initialize(driver)
  @driver = driver
end

Instance Attribute Details

#driverObject (readonly)

Returns the value of attribute driver.



3
4
5
# File 'lib/dmm_util/meter.rb', line 3

def driver
  @driver
end

Instance Method Details

#measure_nowObject



25
26
27
# File 'lib/dmm_util/meter.rb', line 25

def measure_now
  Measurement.new(driver.qddb)
end

#recordingsObject



9
10
11
# File 'lib/dmm_util/meter.rb', line 9

def recordings
  Cursor.new(driver, :recording, :qrsi, Recording)
end

#saved_measurementsObject



13
14
15
# File 'lib/dmm_util/meter.rb', line 13

def saved_measurements
  Cursor.new(driver, :measurement, :qsmr, Measurement)
end

#saved_min_maxObject



17
18
19
# File 'lib/dmm_util/meter.rb', line 17

def saved_min_max
  Cursor.new(driver, :min_max, :qmmsi, Measurement)
end

#saved_peakObject



21
22
23
# File 'lib/dmm_util/meter.rb', line 21

def saved_peak
  Cursor.new(driver, :peak, :qpsi, Measurement)
end