Class: Tdms::AggregateChannel

Inherits:
Object
  • Object
show all
Defined in:
lib/tdms/aggregate.rb

Instance Method Summary collapse

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_typeObject



16
17
18
# File 'lib/tdms/aggregate.rb', line 16

def data_type
  @channels[0].data_type
end

#nameObject



12
13
14
# File 'lib/tdms/aggregate.rb', line 12

def name
  @channels[0].name
end

#pathObject



8
9
10
# File 'lib/tdms/aggregate.rb', line 8

def path
  @channels[0].path
end

#valuesObject



20
21
22
# File 'lib/tdms/aggregate.rb', line 20

def values
  @values ||= AggregateChannelEnumerator.new(@channels)
end