Class: CommitHistory

Inherits:
Object
  • Object
show all
Defined in:
lib/tipster/history/commit_history.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

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_modifiedObject

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_removedObject

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