Class: PostRunner::ActivityView

Inherits:
Object
  • Object
show all
Includes:
ViewWidgets
Defined in:
lib/postrunner/ActivityView.rb

Instance Method Summary collapse

Methods included from ViewWidgets

#frame, #view_widgets_style

Constructor Details

#initialize(activity, output_dir) ⇒ ActivityView

Returns a new instance of ActivityView.



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/postrunner/ActivityView.rb', line 15

def initialize(activity, output_dir)
  @activity = activity
  @output_dir = output_dir
  @output_file = nil

  ensure_output_dir

  @doc = HTMLBuilder.new
  generate_html(@doc)
  write_file
  show_in_browser
end