Class: MultiSimilarityResponse

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

Constant Summary collapse

SCORES =
1
FIELDS =
{
  SCORES => {:type => ::Thrift::Types::MAP, :name => 'scores', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::DOUBLE}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



226
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 226

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


228
229
230
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 228

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