Class: DynamicReports::View
- Inherits:
-
Object
- Object
- DynamicReports::View
- Includes:
- Templates
- Defined in:
- lib/dynamic_reports/views.rb
Constant Summary collapse
- @@cached_templates =
{}
Instance Attribute Summary collapse
-
#report ⇒ Object
Returns the value of attribute report.
-
#template ⇒ Object
Returns the value of attribute template.
-
#views ⇒ Object
Returns the value of attribute views.
Class Method Summary collapse
- .cached_templates ⇒ Object
-
.caller_locations ⇒ Object
TODO: Investigate if we can remove the need for caller_locations here?.
Instance Method Summary collapse
-
#initialize(report) ⇒ View
constructor
A new instance of View.
- #options ⇒ Object
Methods included from Templates
#builder, #chart_url, #commify, #csv, #erb, #haml, #linkcheck, #titleize
Constructor Details
#initialize(report) ⇒ View
Returns a new instance of View.
15 16 17 18 19 |
# File 'lib/dynamic_reports/views.rb', line 15 def initialize(report) @template = report.template @report = report @views = report.views end |
Instance Attribute Details
#report ⇒ Object
Returns the value of attribute report.
6 7 8 |
# File 'lib/dynamic_reports/views.rb', line 6 def report @report end |
#template ⇒ Object
Returns the value of attribute template.
6 7 8 |
# File 'lib/dynamic_reports/views.rb', line 6 def template @template end |
#views ⇒ Object
Returns the value of attribute views.
6 7 8 |
# File 'lib/dynamic_reports/views.rb', line 6 def views @views end |
Class Method Details
.cached_templates ⇒ Object
22 23 24 |
# File 'lib/dynamic_reports/views.rb', line 22 def cached_templates @@cached_templates end |
.caller_locations ⇒ Object
TODO: Investigate if we can remove the need for caller_locations here?
28 |
# File 'lib/dynamic_reports/views.rb', line 28 def self.caller_locations ; [] ; end |
Instance Method Details
#options ⇒ Object
11 12 13 |
# File 'lib/dynamic_reports/views.rb', line 11 def @options ||= {} end |