Class: Eson::HTTP::Client
- Inherits:
-
Client
- Object
- Client
- Eson::HTTP::Client
- Defined in:
- lib/eson/http/client.rb
Overview
This client is a convenience subclass of Client. It sets sane default parameters and adds the following plugins: StatusHandler for handling response status, ResponseParser to parse JSON responses and return Hashes and QueryPlugin to use the Query DSL directly.
Constant Summary collapse
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(opts = {}) ⇒ Client
Returns a new instance of Client.
16 17 18 19 |
# File 'lib/eson/http/client.rb', line 16 def initialize(opts = {}) opts = DEFAULT_OPTS.merge(:plugins => default_plugins).merge(opts) super(opts) end |