Class: Tdms::AggregateChannel
- Inherits:
-
Object
- Object
- Tdms::AggregateChannel
- Defined in:
- lib/tdms/aggregate.rb
Instance Method Summary collapse
- #data_type ⇒ Object
-
#initialize(channels = []) ⇒ AggregateChannel
constructor
A new instance of AggregateChannel.
- #name ⇒ Object
- #path ⇒ Object
- #values ⇒ Object
Constructor Details
#initialize(channels = []) ⇒ AggregateChannel
Returns a new instance of AggregateChannel.
4 5 6 |
# File 'lib/tdms/aggregate.rb', line 4 def initialize(channels=[]) @channels = channels end |
Instance Method Details
#data_type ⇒ Object
16 17 18 |
# File 'lib/tdms/aggregate.rb', line 16 def data_type @channels[0].data_type end |
#name ⇒ Object
12 13 14 |
# File 'lib/tdms/aggregate.rb', line 12 def name @channels[0].name end |
#path ⇒ Object
8 9 10 |
# File 'lib/tdms/aggregate.rb', line 8 def path @channels[0].path end |
#values ⇒ Object
20 21 22 |
# File 'lib/tdms/aggregate.rb', line 20 def values @values ||= AggregateChannelEnumerator.new(@channels) end |