Module: DjiMqttConnect::Mixins::LongitudeConditional

Defined in:
lib/dji_mqtt_connect/mixins/longitude_conditional.rb

Overview

Provides a conditional that returns false for nil for invalid longitude values

Instance Method Summary collapse

Instance Method Details

#longitude?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/dji_mqtt_connect/mixins/longitude_conditional.rb', line 7

def longitude?
  longitude && !Types::NullInteger.valid?(longitude)
end