Class: WeatherLink::Station::LocalSensor

Inherits:
Struct
  • Object
show all
Defined in:
lib/weatherlink/station.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#deviceObject

Returns the value of attribute device

Returns:

  • (Object)

    the current value of device



5
6
7
# File 'lib/weatherlink/station.rb', line 5

def device
  @device
end

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



5
6
7
# File 'lib/weatherlink/station.rb', line 5

def host
  @host
end

Instance Method Details

#clientObject



6
7
8
# File 'lib/weatherlink/station.rb', line 6

def client
  @client ||= LocalClient.new(host: host)
end

#current_conditionsObject



10
11
12
# File 'lib/weatherlink/station.rb', line 10

def current_conditions
  client.current_conditions
end