Class: GemComet::Changelog::Generator
- Inherits:
-
ServiceAbstract
- Object
- ServiceAbstract
- GemComet::Changelog::Generator
- Defined in:
- lib/gem_comet/changelog/generator.rb
Overview
Generates changelog from git log
Instance Attribute Summary collapse
-
#origin_url ⇒ Object
readonly
Returns the value of attribute origin_url.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(version:, title: nil) ⇒ Generator
constructor
A new instance of Generator.
Methods inherited from ServiceAbstract
Constructor Details
#initialize(version:, title: nil) ⇒ Generator
Returns a new instance of Generator.
11 12 13 14 15 |
# File 'lib/gem_comet/changelog/generator.rb', line 11 def initialize(version:, title: nil) @version = version @title = title || version @origin_url = RepositoryUrl.call end |
Instance Attribute Details
#origin_url ⇒ Object (readonly)
Returns the value of attribute origin_url.
7 8 9 |
# File 'lib/gem_comet/changelog/generator.rb', line 7 def origin_url @origin_url end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
7 8 9 |
# File 'lib/gem_comet/changelog/generator.rb', line 7 def title @title end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
7 8 9 |
# File 'lib/gem_comet/changelog/generator.rb', line 7 def version @version end |