Class: LogMagic::SearchkickPrinter

Inherits:
Object
  • Object
show all
Defined in:
lib/log_magic/printers/searchkick_printer.rb

Instance Method Summary collapse

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



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