Class: DmmUtil::Recording
- Inherits:
-
Object
- Object
- DmmUtil::Recording
- Defined in:
- lib/dmm_util/recording.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #end_ts ⇒ Object
-
#initialize(driver, attrs) ⇒ Recording
constructor
A new instance of Recording.
- #measurements ⇒ Object
- #name ⇒ Object
- #num_samples ⇒ Object
- #seq_no ⇒ Object
- #start_ts ⇒ Object
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
#raw ⇒ Object (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_ts ⇒ Object
18 19 20 |
# File 'lib/dmm_util/recording.rb', line 18 def end_ts raw[:end_ts] end |
#measurements ⇒ Object
30 31 32 |
# File 'lib/dmm_util/recording.rb', line 30 def measurements RecordingMeasurementCursor.new(@driver, self) end |
#name ⇒ Object
10 11 12 |
# File 'lib/dmm_util/recording.rb', line 10 def name raw[:name] end |
#num_samples ⇒ Object
26 27 28 |
# File 'lib/dmm_util/recording.rb', line 26 def num_samples raw[:num_samples] end |
#seq_no ⇒ Object
22 23 24 |
# File 'lib/dmm_util/recording.rb', line 22 def seq_no raw[:seq_no] end |
#start_ts ⇒ Object
14 15 16 |
# File 'lib/dmm_util/recording.rb', line 14 def start_ts raw[:start_ts] end |