Class: Blastr::SourceControl::LogEntry
- Inherits:
-
Object
- Object
- Blastr::SourceControl::LogEntry
- Defined in:
- lib/scm/scm.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#revision ⇒ Object
Returns the value of attribute revision.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(revision, author, comment) ⇒ LogEntry
constructor
A new instance of LogEntry.
- #to_s ⇒ Object
Constructor Details
#initialize(revision, author, comment) ⇒ LogEntry
Returns a new instance of LogEntry.
7 8 9 10 11 |
# File 'lib/scm/scm.rb', line 7 def initialize(revision, , comment) @revision = revision @author = @comment = comment end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
5 6 7 |
# File 'lib/scm/scm.rb', line 5 def @author end |
#comment ⇒ Object
Returns the value of attribute comment.
5 6 7 |
# File 'lib/scm/scm.rb', line 5 def comment @comment end |
#revision ⇒ Object
Returns the value of attribute revision.
5 6 7 |
# File 'lib/scm/scm.rb', line 5 def revision @revision end |
Instance Method Details
#==(other) ⇒ Object
13 14 15 |
# File 'lib/scm/scm.rb', line 13 def ==(other) @revision == other.revision and @author == other. and @comment == other.comment end |
#to_s ⇒ Object
17 18 19 |
# File 'lib/scm/scm.rb', line 17 def to_s "revision #{@revision} by #{@author}: #{@comment}" end |