Class: Sfeed::ISfeedHandler::GetFeed_args

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

Overview

HELPER FUNCTIONS AND STRUCTURES

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_fieldsObject



405
# File 'lib/i_sfeed_handler.rb', line 405

def struct_fields; FIELDS; end

#validateObject



407
408
409
410
411
# File 'lib/i_sfeed_handler.rb', line 407

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