Class: Groonga::Client::Response::Status

Inherits:
Base
  • Object
show all
Defined in:
lib/groonga/client/response/status.rb

Instance Attribute Summary

Attributes inherited from Base

#body, #command, #header, #raw, #trace_logs

Instance Method Summary collapse

Methods inherited from Base

#elapsed_time, #error_message, #initialize, parse, #return_code, #start_time, #status_code, #success?

Constructor Details

This class inherits a constructor from Groonga::Client::Response::Base

Instance Method Details

#alloc_countInteger Also known as: n_allocations

Returns The number of allocated memory blocks.

Returns:

  • (Integer)

    The number of allocated memory blocks.



29
30
31
# File 'lib/groonga/client/response/status.rb', line 29

def alloc_count
  @body["alloc_count"] || 0
end