Class: DmmUtil::Recording

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(driver, attrs) ⇒ Recording

Returns a new instance of Recording.



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

def initialize(driver, attrs)
  @driver = driver
  @raw = attrs
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



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

def raw
  @raw
end

Instance Method Details

#end_tsObject



18
19
20
# File 'lib/dmm_util/recording.rb', line 18

def end_ts
  raw[:end_ts]
end

#measurementsObject



30
31
32
# File 'lib/dmm_util/recording.rb', line 30

def measurements
  RecordingMeasurementCursor.new(@driver, self)
end

#nameObject



10
11
12
# File 'lib/dmm_util/recording.rb', line 10

def name
  raw[:name]
end

#num_samplesObject



26
27
28
# File 'lib/dmm_util/recording.rb', line 26

def num_samples
  raw[:num_samples]
end

#seq_noObject



22
23
24
# File 'lib/dmm_util/recording.rb', line 22

def seq_no
  raw[:seq_no]
end

#start_tsObject



14
15
16
# File 'lib/dmm_util/recording.rb', line 14

def start_ts
  raw[:start_ts]
end