Module: Eson::HTTP::API
- Includes:
- API
- Included in:
- Aliases, Analyze, Bulk, ClearCache, CloseIndex, Count, CreateIndex, Delete, DeleteByQuery, DeleteIndex, DeleteMapping, DeleteTemplate, Explain, Flush, Get, GetAliases, GetMapping, GetSettings, GetTemplate, Health, Index, IndexExists, IndexStats, MoreLikeThis, MultiGet, MultiSearch, Nodes, OpenIndex, Optimize, Percolate, PutMapping, PutTemplate, Refresh, Scroll, Search, Segments, Shutdown, SimpleSearch, Snapshot, State, Stats, Status, Update, UpdateSettings, Validate
- Defined in:
- lib/eson/http/api.rb
Overview
HTTP::Api is like Api, but allows to define a request method as well. All HTTP::Api objects also have to define ‘#path` as a method to return the endpoint path as a url template.
Instance Method Summary collapse
-
#request_method(method) ⇒ Object
DSL method to indicate the request method.
Instance Method Details
#request_method(method) ⇒ Object
DSL method to indicate the request method.
12 13 14 15 16 |
# File 'lib/eson/http/api.rb', line 12 def request_method(method) define_method :request_method do @request_method || method end end |