Class: OMF::Web::Tab::Log::LogService

Inherits:
AbstractService show all
Defined in:
lib/omf-web/UNUSED/tab/log/log_service.rb

Instance Method Summary collapse

Constructor Details

#initialize(tab_id, opts = {}) ⇒ LogService

Returns a new instance of LogService.



11
12
13
14
15
# File 'lib/omf-web/UNUSED/tab/log/log_service.rb', line 11

def initialize(tab_id, opts = {})
  @tab_id = tab_id
  @opts = opts
  @widget = OMF::Web::Widget::Log::LogWidget.new(opts)
end

Instance Method Details

#show(req, opts) ⇒ Object



17
18
19
20
21
# File 'lib/omf-web/UNUSED/tab/log/log_service.rb', line 17

def show(req, opts)
  opts[:card_title] ||= 'Log'
  OMF::Web::Theme.require 'widget_page'
  [OMF::Web::Theme::WidgetPage.new(@widget, opts).to_html, 'text/html']
end