Class: Droonga::CatalogFetcher
- Inherits:
-
Object
- Object
- Droonga::CatalogFetcher
- Defined in:
- lib/droonga/catalog_fetcher.rb
Instance Method Summary collapse
- #fetch(options = {}) ⇒ Object
-
#initialize(client_options) ⇒ CatalogFetcher
constructor
A new instance of CatalogFetcher.
Constructor Details
#initialize(client_options) ⇒ CatalogFetcher
Returns a new instance of CatalogFetcher.
25 26 27 |
# File 'lib/droonga/catalog_fetcher.rb', line 25 def initialize() @client_options = .merge() end |
Instance Method Details
#fetch(options = {}) ⇒ Object
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/droonga/catalog_fetcher.rb', line 29 def fetch(={}) = { "dataset" => [:dataset] || Catalog::Dataset::DEFAULT_NAME, "type" => "catalog.fetch" } Droonga::Client.open(@client_options) do |client| response = client.request() response["body"] end end |