Class: IssueTemplateRenderer
- Inherits:
-
ErbTemplateRenderer
- Object
- ErbTemplateRenderer
- IssueTemplateRenderer
- Defined in:
- lib/devlogs/render/issue_template_renderer.rb
Overview
IssueTemplateRenderer captures issue information and renders it within a given ERB template
Constant Summary
Constants inherited from ErbTemplateRenderer
ErbTemplateRenderer::TIME_FORMAT_TEXT_ENTRY
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#reproduction ⇒ Object
readonly
Returns the value of attribute reproduction.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Attributes inherited from ErbTemplateRenderer
Instance Method Summary collapse
-
#initialize(template_file_path, info = {}) ⇒ IssueTemplateRenderer
constructor
A new instance of IssueTemplateRenderer.
Methods inherited from ErbTemplateRenderer
Constructor Details
#initialize(template_file_path, info = {}) ⇒ IssueTemplateRenderer
Returns a new instance of IssueTemplateRenderer.
12 13 14 15 16 17 18 |
# File 'lib/devlogs/render/issue_template_renderer.rb', line 12 def initialize(template_file_path, info = {}) super(template_file_path) @title = info[:display_title] @description = info[:description] @reproduction = info[:reproduction] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
10 11 12 |
# File 'lib/devlogs/render/issue_template_renderer.rb', line 10 def description @description end |
#reproduction ⇒ Object (readonly)
Returns the value of attribute reproduction.
10 11 12 |
# File 'lib/devlogs/render/issue_template_renderer.rb', line 10 def reproduction @reproduction end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
10 11 12 |
# File 'lib/devlogs/render/issue_template_renderer.rb', line 10 def title @title end |