class WeatherLink::SensorDataCollection

Attributes

client[R]

Public Class Methods

new(client, sensors) click to toggle source
Calls superclass method
# File lib/weatherlink/sensor_data_collection.rb, line 9
def initialize(client, sensors)
  @client = client
  super(sensors)
end

Public Instance Methods

archive() click to toggle source
# File lib/weatherlink/sensor_data_collection.rb, line 26
def archive
  SensorDataCollection.new(client, select(&:archive?))
end
current_conditions() click to toggle source
# File lib/weatherlink/sensor_data_collection.rb, line 22
def current_conditions
  SensorDataCollection.new(client, select(&:current_conditions?))
end
health() click to toggle source
# File lib/weatherlink/sensor_data_collection.rb, line 34
def health
  SensorDataCollection.new(client, select(&:health?))
end
inspect() click to toggle source
# File lib/weatherlink/sensor_data_collection.rb, line 18
def inspect
  to_s
end
to_s() click to toggle source
# File lib/weatherlink/sensor_data_collection.rb, line 14
def to_s
  "#<#{self.class.name} (#{size} sensors)>"
end
weather() click to toggle source
# File lib/weatherlink/sensor_data_collection.rb, line 30
def weather
  SensorDataCollection.new(client, select(&:weather?))
end