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