Class: Groonga::Client::Response::TableList
- Includes:
- Enumerable
- Defined in:
- lib/groonga/client/response/table-list.rb
Defined Under Namespace
Classes: Table
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
#[](index) ⇒ Object
45 46 47 |
# File 'lib/groonga/client/response/table-list.rb', line 45 def [](index) @tables[index] end |
#body=(body) ⇒ Object
30 31 32 33 |
# File 'lib/groonga/client/response/table-list.rb', line 30 def body=(body) super(body) parse_body(body) end |
#each ⇒ Object
35 36 37 38 39 |
# File 'lib/groonga/client/response/table-list.rb', line 35 def each @tables.each do |table| yield table end end |
#size ⇒ Object
41 42 43 |
# File 'lib/groonga/client/response/table-list.rb', line 41 def size @tables.size end |