Sha256: be38b21c2f2016765f26932f2d67bd0f2ea90e347e86983336eecb6280eb2799

Contents?: true

Size: 289 Bytes

Versions: 43

Compression:

Stored size: 289 Bytes

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Mixins
    # Provides a conditional that returns false for nil for invalid latitude values
    module LatitudeConditional
      def latitude?
        latitude && !Types::NullInteger.valid?(latitude)
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.4 lib/dji_mqtt_connect/mixins/latitude_conditional.rb
dji_mqtt_connect-0.1.3 lib/dji_mqtt_connect/mixins/latitude_conditional.rb
dji_mqtt_connect-0.1.2 lib/dji_mqtt_connect/mixins/latitude_conditional.rb