Class: Swoop::Renderer
- Inherits:
-
Object
- Object
- Swoop::Renderer
- Defined in:
- lib/swoop/renderer/renderer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#reports ⇒ Object
readonly
Returns the value of attribute reports.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(reports, title) ⇒ Renderer
constructor
A new instance of Renderer.
- #render ⇒ Object
Constructor Details
#initialize(reports, title) ⇒ Renderer
Returns a new instance of Renderer.
6 7 8 9 |
# File 'lib/swoop/renderer/renderer.rb', line 6 def initialize(reports, title) @reports = reports @title = title end |
Instance Attribute Details
#reports ⇒ Object (readonly)
Returns the value of attribute reports.
4 5 6 |
# File 'lib/swoop/renderer/renderer.rb', line 4 def reports @reports end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/swoop/renderer/renderer.rb', line 4 def title @title end |
Instance Method Details
#render ⇒ Object
11 12 13 |
# File 'lib/swoop/renderer/renderer.rb', line 11 def render # should be implemented by subclass end |