Class: Groonga::Client::Response::Select

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

Defined Under Namespace

Classes: Drilldown

Instance Attribute Summary collapse

Attributes inherited from Base

#body, #command, #header, #raw

Instance Method Summary collapse

Methods inherited from Base

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

Constructor Details

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

Instance Attribute Details

#drilldownsObject

Returns the value of attribute drilldowns.



30
31
32
# File 'lib/groonga/client/response/select.rb', line 30

def drilldowns
  @drilldowns
end

#n_hitsInteger

Returns The number of records that match againt a search condition.

Returns:

  • (Integer)

    The number of records that match againt a search condition.



28
29
30
# File 'lib/groonga/client/response/select.rb', line 28

def n_hits
  @n_hits
end

#recordsObject

Returns the value of attribute records.



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

def records
  @records
end

Instance Method Details

#body=(body) ⇒ Object



32
33
34
35
# File 'lib/groonga/client/response/select.rb', line 32

def body=(body)
  super(body)
  parse_body(body)
end