Class: ElasticSearchThrift::Rest::Execute_args

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

Overview

HELPER FUNCTIONS AND STRUCTURES

Constant Summary collapse

REQUEST =
1
FIELDS =
{
  REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::ElasticSearchThrift::RestRequest}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



54
# File 'lib/elastic_search_thrift/rest.rb', line 54

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


56
57
58
# File 'lib/elastic_search_thrift/rest.rb', line 56

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