Class: WeatherLink::Station::LocalSensor
- Inherits:
-
Struct
- Object
- Struct
- WeatherLink::Station::LocalSensor
- Defined in:
- lib/weatherlink/station.rb
Instance Attribute Summary collapse
-
#device ⇒ Object
Returns the value of attribute device.
-
#host ⇒ Object
Returns the value of attribute host.
Instance Method Summary collapse
Instance Attribute Details
#device ⇒ Object
Returns the value of attribute device
5 6 7 |
# File 'lib/weatherlink/station.rb', line 5 def device @device end |
#host ⇒ Object
Returns the value of attribute host
5 6 7 |
# File 'lib/weatherlink/station.rb', line 5 def host @host end |
Instance Method Details
#client ⇒ Object
6 7 8 |
# File 'lib/weatherlink/station.rb', line 6 def client @client ||= LocalClient.new(host: host) end |
#current_conditions ⇒ Object
10 11 12 |
# File 'lib/weatherlink/station.rb', line 10 def current_conditions client.current_conditions end |