Class: LogMagic::SearchkickPrinter
- Inherits:
-
Object
- Object
- LogMagic::SearchkickPrinter
- Defined in:
- lib/log_magic/printers/searchkick_printer.rb
Instance Method Summary collapse
-
#initialize(query_json, uuid) ⇒ SearchkickPrinter
constructor
A new instance of SearchkickPrinter.
- #print ⇒ Object
Constructor Details
#initialize(query_json, uuid) ⇒ SearchkickPrinter
Returns a new instance of SearchkickPrinter.
4 5 6 7 |
# File 'lib/log_magic/printers/searchkick_printer.rb', line 4 def initialize(query_json, uuid) @query_json = query_json @uuid = uuid end |
Instance Method Details
#print ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/log_magic/printers/searchkick_printer.rb', line 9 def print """ ElasticSearch query generated by Searchkick explained Copy and view in browser: http://localhost:#{::LogMagic::SearchkickExplainer.port_number}/#{@uuid} <------------------------------------------> """ end |