Module: Eson::HTTP::Count
Instance Method Summary collapse
Methods included from API
Instance Method Details
#bare_path ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/eson/http/core/count.rb', line 9 def unless types.empty? path = "{indices}/{types}/" else path = "{indices}/" end end |
#path ⇒ Object
17 18 19 |
# File 'lib/eson/http/core/count.rb', line 17 def path path = + "_count" end |
#source ⇒ Object
21 22 23 |
# File 'lib/eson/http/core/count.rb', line 21 def source MultiJson.encode(query) end |