Class: Sfeed::ISfeedHandler::GetEvent_args
- Inherits:
-
Object
- Object
- Sfeed::ISfeedHandler::GetEvent_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/i_sfeed_handler.rb
Constant Summary collapse
- UID =
1
- TIMELINE =
2
- LIMIT =
3
- QUERYTYPE =
4
- FIELDS =
{ UID => {:type => ::Thrift::Types::I64, :name => 'uid'}, TIMELINE => {:type => ::Thrift::Types::DOUBLE, :name => 'timeline'}, LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'}, QUERYTYPE => {:type => ::Thrift::Types::I32, :name => 'queryType', :enum_class => ::Sfeed::QueryType} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
446 |
# File 'lib/i_sfeed_handler.rb', line 446 def struct_fields; FIELDS; end |
#validate ⇒ Object
448 449 450 451 452 |
# File 'lib/i_sfeed_handler.rb', line 448 def validate unless @queryType.nil? || ::Sfeed::QueryType::VALID_VALUES.include?(@queryType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field queryType!') end end |