Class: GitReleaseNotes::IssueEntry
- Inherits:
-
Object
- Object
- GitReleaseNotes::IssueEntry
- Defined in:
- lib/git_release_notes/issue_entry.rb
Instance Attribute Summary collapse
-
#git_message ⇒ Object
Returns the value of attribute git_message.
-
#git_timestamp ⇒ Object
Returns the value of attribute git_timestamp.
-
#issue_no ⇒ Object
Returns the value of attribute issue_no.
-
#jira_status ⇒ Object
Returns the value of attribute jira_status.
-
#jira_summary ⇒ Object
Returns the value of attribute jira_summary.
Instance Method Summary collapse
Instance Attribute Details
#git_message ⇒ Object
Returns the value of attribute git_message.
3 4 5 |
# File 'lib/git_release_notes/issue_entry.rb', line 3 def @git_message end |
#git_timestamp ⇒ Object
Returns the value of attribute git_timestamp.
3 4 5 |
# File 'lib/git_release_notes/issue_entry.rb', line 3 def @git_timestamp end |
#issue_no ⇒ Object
Returns the value of attribute issue_no.
3 4 5 |
# File 'lib/git_release_notes/issue_entry.rb', line 3 def issue_no @issue_no end |
#jira_status ⇒ Object
Returns the value of attribute jira_status.
3 4 5 |
# File 'lib/git_release_notes/issue_entry.rb', line 3 def jira_status @jira_status end |
#jira_summary ⇒ Object
Returns the value of attribute jira_summary.
3 4 5 |
# File 'lib/git_release_notes/issue_entry.rb', line 3 def jira_summary @jira_summary end |
Instance Method Details
#jira_md_link ⇒ Object
9 10 11 |
# File 'lib/git_release_notes/issue_entry.rb', line 9 def jira_md_link "[#{issue_no}](#{jira_path})" end |
#jira_path ⇒ Object
13 14 15 |
# File 'lib/git_release_notes/issue_entry.rb', line 13 def jira_path "#{ENV['JIRA_URL']}/browse/#{issue_no}" end |
#summary ⇒ Object
17 18 19 |
# File 'lib/git_release_notes/issue_entry.rb', line 17 def summary jira_summary || "[git] #{}" end |
#to_md_string ⇒ Object
5 6 7 |
# File 'lib/git_release_notes/issue_entry.rb', line 5 def to_md_string "#{jira_md_link} #{summary}" end |