Class: CreateGithubRelease::Change
- Inherits:
-
Object
- Object
- CreateGithubRelease::Change
- Defined in:
- lib/create_github_release/change.rb
Overview
The release information needed to generate a changelog
Instance Attribute Summary collapse
-
#sha ⇒ String
readonly
The commit sha of the change.
-
#subject ⇒ String
readonly
The subject (aka description) of the change.
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
Compare two changes to see if they refer to the same change.
-
#initialize(sha, subject) ⇒ Change
constructor
Create a new release object.
Constructor Details
#initialize(sha, subject) ⇒ Change
Create a new release object
22 23 24 25 |
# File 'lib/create_github_release/change.rb', line 22 def initialize(sha, subject) @sha = sha @subject = subject end |
Instance Attribute Details
#sha ⇒ String (readonly)
The commit sha of the change
37 38 39 |
# File 'lib/create_github_release/change.rb', line 37 def sha @sha end |
#subject ⇒ String (readonly)
The subject (aka description) of the change
49 50 51 |
# File 'lib/create_github_release/change.rb', line 49 def subject @subject end |
Instance Method Details
#==(other) ⇒ Boolean
Compare two changes to see if they refer to the same change
Two changes are equal if their sha
and subject
attributes are equal.
69 70 71 |
# File 'lib/create_github_release/change.rb', line 69 def ==(other) self.class == other.class && sha == other.sha && subject == other.subject end |