class NestWrapper::State
Attributes
away[RW]
curr_temp[RW]
humidity[RW]
leaf[RW]
online[RW]
target_temp_at[RW]
temp[RW]
Public Class Methods
new(status)
click to toggle source
# File lib/nest_wrapper/state.rb, line 5 def initialize(status) self.online = NestWrapper.nest.status['track'].to_a.flatten[1]['online'] self.away = NestWrapper.nest.away self.leaf = NestWrapper.nest.leaf self.temp = NestWrapper.nest.temp self.curr_temp = NestWrapper.nest.current_temp self.humidity = NestWrapper.nest.humidity self.target_temp_at = NestWrapper.nest.target_temp_at end