Class: WeatherTrigger

Inherits:
Trigger show all
Defined in:
lib/ruby-macrodroid.rb

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ WeatherTrigger

Returns a new instance of WeatherTrigger.



1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
# File 'lib/ruby-macrodroid.rb', line 1140

def initialize(h={})

  options = {
    humidity_above: true,
    humidity_value: 50,
    option: 4,
    temp_below: true,
    temp_celcius: true,
    temperature: 0,
    weather_condition: 0,
    wind_speed_above: true,
    wind_speed_value: 0,
    wind_speed_value_mph: 0
  }

  super(options.merge h)

end