Module: Eson::HTTP::Index
Instance Method Summary collapse
Instance Method Details
#path ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/eson/http/core/index.rb', line 9 def path if id "/{index}/{type}/{id}" else "/{index}/{type}" end end |
#request_method ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/eson/http/core/index.rb', line 17 def request_method if id :put else :post end end |