Class: DebugScoreComponent

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/thrift/geocoder_types.rb

Constant Summary collapse

KEY =
1
VALUE =
2
FIELDS =
{
  KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
  VALUE => {:type => ::Thrift::Types::I32, :name => 'value'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



418
# File 'lib/thrift/geocoder_types.rb', line 418

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


420
421
422
423
# File 'lib/thrift/geocoder_types.rb', line 420

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field value is unset!') unless @value
end