Class: MultiSimilarityResponse
- Inherits:
-
Object
- Object
- MultiSimilarityResponse
- 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_fields ⇒ Object
238 |
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 238 def struct_fields; FIELDS; end |
#validate ⇒ Object
240 241 242 |
# File 'lib/gen-rb/relevanced_protocol_types.rb', line 240 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field scores is unset!') unless @scores end |