Class: PostRunner::ActivityView

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

Instance Method Summary collapse

Methods included from ViewWidgets

#button, #footer, #frame, #titlebar, #view_widgets_style

Constructor Details

#initialize(activity, unit_system, predecessor, successor) ⇒ ActivityView

Returns a new instance of ActivityView.



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/postrunner/ActivityView.rb', line 29

def initialize(activity, unit_system, predecessor, successor)
  @activity = activity
  @unit_system = unit_system
  @predecessor = predecessor
  @successor = successor
  @output_dir = activity.html_dir
  @output_file = nil

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