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
- EXPECTED_STATI =
[200, 404].freeze
- PRESENTER =
Presenter::Document::Get
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
69 70 71 72 73 74 |
# File 'lib/esearch/command/document.rb', line 69 def result assert_success if response.status == 200 presenter.new(parsed_json) end end |