class WeatherLink::Sensor
Attributes
client[R]
Public Class Methods
new(client, data)
click to toggle source
Calls superclass method
WeatherLink::HashWrapper::new
# File lib/weatherlink/sensor.rb, line 7 def initialize(client, data) @client = client super(data) end
Public Instance Methods
description()
click to toggle source
# File lib/weatherlink/sensor.rb, line 20 def description "#{manufacturer} - #{product_name}" end
inspect()
click to toggle source
# File lib/weatherlink/sensor.rb, line 16 def inspect to_s end
to_s()
click to toggle source
# File lib/weatherlink/sensor.rb, line 12 def to_s "#<#{self.class.name} lsid=#{lsid} (#{description})>" end