Class: Esearch::Command::Document::Get
- Inherits:
-
Esearch::Command::Document
- Object
- Esearch::Command
- Esearch::Command::Document
- Esearch::Command::Document::Get
- Defined in:
- lib/esearch/command/document.rb
Overview
Present get document command result
Constant Summary collapse
Constants inherited from Esearch::Command
Instance Method Summary collapse
-
#result ⇒ true, false
private
Return result.
Methods inherited from Esearch::Command
Instance Method Details
#result ⇒ true, false
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return result
67 68 69 70 71 72 73 74 |
# File 'lib/esearch/command/document.rb', line 67 def result assert_success if response.status == 200 presenter.new(parsed_json) else nil end end |