Class: JenkinsTracker::ChangelogItem
- Inherits:
-
Object
- Object
- JenkinsTracker::ChangelogItem
- Defined in:
- lib/jenkins_tracker/changelog_item.rb
Instance Attribute Summary collapse
-
#commit_message ⇒ Object
Returns the value of attribute commit_message.
-
#story_id ⇒ Object
Returns the value of attribute story_id.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(options = {}) ⇒ ChangelogItem
constructor
A new instance of ChangelogItem.
Constructor Details
#initialize(options = {}) ⇒ ChangelogItem
Returns a new instance of ChangelogItem.
6 7 8 9 |
# File 'lib/jenkins_tracker/changelog_item.rb', line 6 def initialize( = {}) @story_id = [:story_id] @commit_message = [:commit_message] end |
Instance Attribute Details
#commit_message ⇒ Object
Returns the value of attribute commit_message.
4 5 6 |
# File 'lib/jenkins_tracker/changelog_item.rb', line 4 def @commit_message end |
#story_id ⇒ Object
Returns the value of attribute story_id.
4 5 6 |
# File 'lib/jenkins_tracker/changelog_item.rb', line 4 def story_id @story_id end |
Instance Method Details
#==(other) ⇒ Object
11 12 13 |
# File 'lib/jenkins_tracker/changelog_item.rb', line 11 def ==(other) self.story_id == other.story_id && self. == other. end |
#eql?(other) ⇒ Boolean
15 16 17 |
# File 'lib/jenkins_tracker/changelog_item.rb', line 15 def eql?(other) (self.class == other.class) && self == other end |
#hash ⇒ Object
19 20 21 |
# File 'lib/jenkins_tracker/changelog_item.rb', line 19 def hash [story_id, ].hash end |