Class: CommitHistory
- Inherits:
-
Object
- Object
- CommitHistory
- Defined in:
- lib/tipster/history/commit_history.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#lines_modified ⇒ Object
Returns the value of attribute lines_modified.
-
#lines_removed ⇒ Object
Returns the value of attribute lines_removed.
Instance Method Summary collapse
-
#initialize(lines_modified = 0, lines_removed = 0, file_name = "") ⇒ CommitHistory
constructor
A new instance of CommitHistory.
Constructor Details
#initialize(lines_modified = 0, lines_removed = 0, file_name = "") ⇒ CommitHistory
Returns a new instance of CommitHistory.
4 5 6 7 8 |
# File 'lib/tipster/history/commit_history.rb', line 4 def initialize(lines_modified = 0, lines_removed = 0, file_name = "") @lines_modified = lines_modified @lines_removed = lines_removed @file_name = file_name end |
Instance Attribute Details
#file_name ⇒ Object
Returns the value of attribute file_name.
2 3 4 |
# File 'lib/tipster/history/commit_history.rb', line 2 def file_name @file_name end |
#lines_modified ⇒ Object
Returns the value of attribute lines_modified.
2 3 4 |
# File 'lib/tipster/history/commit_history.rb', line 2 def lines_modified @lines_modified end |
#lines_removed ⇒ Object
Returns the value of attribute lines_removed.
2 3 4 |
# File 'lib/tipster/history/commit_history.rb', line 2 def lines_removed @lines_removed end |