Class: Sfeed::RankInfo
- Inherits:
-
Object
- Object
- Sfeed::RankInfo
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/sfeed_types.rb
Constant Summary collapse
- RANK =
1
- SCORE =
2
- FIELDS =
{ RANK => {:type => ::Thrift::Types::I32, :name => 'rank'}, SCORE => {:type => ::Thrift::Types::DOUBLE, :name => 'score'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
259 |
# File 'lib/sfeed_types.rb', line 259 def struct_fields; FIELDS; end |
#validate ⇒ Object
261 262 263 264 |
# File 'lib/sfeed_types.rb', line 261 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field rank is unset!') unless @rank raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field score is unset!') unless @score end |