Class: OMF::Web::Tab::Log::LogService
- Inherits:
-
AbstractService
- Object
- MObject
- AbstractService
- OMF::Web::Tab::Log::LogService
- Defined in:
- lib/omf-web/UNUSED/tab/log/log_service.rb
Instance Method Summary collapse
-
#initialize(tab_id, opts = {}) ⇒ LogService
constructor
A new instance of LogService.
- #show(req, opts) ⇒ Object
Constructor Details
#initialize(tab_id, opts = {}) ⇒ 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 = 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(, opts).to_html, 'text/html'] end |