Sha256: 22f93860085dee8b2b7a4e52c7bcb6987ad62a69a7c307fda524a4babcdc4005
Contents?: true
Size: 385 Bytes
Versions: 4
Compression:
Stored size: 385 Bytes
Contents
# frozen_string_literal: true module WeatherLink class Sensor < HashWrapper attr_reader :client def initialize(client, data) @client = client super(data) end def to_s "#<#{self.class.name} lsid=#{lsid} (#{description})>" end def inspect to_s end def description "#{manufacturer} - #{product_name}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
weatherlink-0.1.3 | lib/weatherlink/sensor.rb |
weatherlink-0.1.2 | lib/weatherlink/sensor.rb |
weatherlink-0.1.1 | lib/weatherlink/sensor.rb |
weatherlink-0.1.0 | lib/weatherlink/sensor.rb |