Module: DjiMqttConnect::Mixins::TemperatureConditional
- Defined in:
- lib/dji_mqtt_connect/mixins/temperature_conditional.rb
Overview
Provides a conditional that returns false for nil or excessive values (invalid data)
Instance Method Summary collapse
Instance Method Details
#temperature? ⇒ Boolean
7 8 9 |
# File 'lib/dji_mqtt_connect/mixins/temperature_conditional.rb', line 7 def temperature? temperature && !Types::InvalidTemperature.valid?(temperature) end |