Class: IssueTemplateRenderer

Inherits:
ErbTemplateRenderer show all
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

Attributes inherited from ErbTemplateRenderer

#time

Instance Method Summary collapse

Methods inherited from ErbTemplateRenderer

#get_binding, #render

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

#descriptionObject (readonly)

Returns the value of attribute description.



10
11
12
# File 'lib/devlogs/render/issue_template_renderer.rb', line 10

def description
  @description
end

#reproductionObject (readonly)

Returns the value of attribute reproduction.



10
11
12
# File 'lib/devlogs/render/issue_template_renderer.rb', line 10

def reproduction
  @reproduction
end

#titleObject (readonly)

Returns the value of attribute title.



10
11
12
# File 'lib/devlogs/render/issue_template_renderer.rb', line 10

def title
  @title
end