Class: PostRunner::ActivityView
- Inherits:
-
Object
- Object
- PostRunner::ActivityView
- Includes:
- ViewWidgets
- Defined in:
- lib/postrunner/ActivityView.rb
Instance Method Summary collapse
-
#initialize(activity, output_dir) ⇒ ActivityView
constructor
A new instance of ActivityView.
Methods included from ViewWidgets
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 |