Class: PostRunner::DailyMonitoringView
- Defined in:
- lib/postrunner/DailyMonitoringView.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
Attributes inherited from View
Instance Method Summary collapse
-
#initialize(db, date, monitoring_files) ⇒ DailyMonitoringView
constructor
A new instance of DailyMonitoringView.
Methods inherited from View
Constructor Details
#initialize(db, date, monitoring_files) ⇒ DailyMonitoringView
Returns a new instance of DailyMonitoringView.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/postrunner/DailyMonitoringView.rb', line 24 def initialize(db, date, monitoring_files) @db = db @ffs = db['file_store'] views = @ffs.views views.current_page = nil @date = date @monitoring_files = monitoring_files @file_name = File.join(@db['config']['html_dir'], "#{date}.html") pages = PagingButtons.new([ date ]) #pages.current_page = "#{date}.html" super("PostRunner Daily Monitoring: #{date}", views, pages) generate_html(@doc) write(@file_name) end |
Instance Attribute Details
#file_name ⇒ Object (readonly)
Returns the value of attribute file_name.
22 23 24 |
# File 'lib/postrunner/DailyMonitoringView.rb', line 22 def file_name @file_name end |