class TED::Spyder::Group
Attributes
description[R]
Public Class Methods
new(index, description, cts)
click to toggle source
# File lib/ted/spyder/group.rb, line 12 def initialize(index, description, cts) @index, @description, @cts = index, description, cts end
Public Instance Methods
current()
click to toggle source
Current data for this Group
# File lib/ted/spyder/group.rb, line 17 def current spyder.mtu.ecc.current(:spyders)[self] end
history(interval: :minutes, offset: nil, limit: nil, date_range: nil, start_time: nil, end_time: nil)
click to toggle source
# File lib/ted/spyder/group.rb, line 21 def history(interval: :minutes, offset: nil, limit: nil, date_range: nil, start_time: nil, end_time: nil) offset = ECC.send(:interpret_offsets, offset, limit) date_range = ECC.send(:interpret_dates, date_range, start_time, end_time) spyder.mtu.ecc.send(:history_by_source, self, interval, offset, date_range) end