Class: GeolocationAccuracy

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb

Constant Summary collapse

RADIUSMETERS =
1
RADIUSCONFIDENCE =
2
ALTITUDEACCURACY =
3
VELOCITYACCURACY =
4
BEARINGACCURACY =
5
ACCURACYMODE =
6
FIELDS =
{
  RADIUSMETERS => {:type => ::Thrift::Types::DOUBLE, :name => 'radiusMeters'},
  RADIUSCONFIDENCE => {:type => ::Thrift::Types::DOUBLE, :name => 'radiusConfidence'},
  ALTITUDEACCURACY => {:type => ::Thrift::Types::DOUBLE, :name => 'altitudeAccuracy', :optional => true},
  VELOCITYACCURACY => {:type => ::Thrift::Types::DOUBLE, :name => 'velocityAccuracy', :optional => true},
  BEARINGACCURACY => {:type => ::Thrift::Types::DOUBLE, :name => 'bearingAccuracy', :optional => true},
  ACCURACYMODE => {:type => ::Thrift::Types::I32, :name => 'accuracyMode', :optional => true, :enum_class => ::P0_a_e_a_b_i}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



14439
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14439

def struct_fields; FIELDS; end

#validateObject



14441
14442
14443
14444
14445
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14441

def validate
  unless @accuracyMode.nil? || ::P0_a_e_a_b_i::VALID_VALUES.include?(@accuracyMode)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field accuracyMode!')
  end
end