Class: TimeCost::Commit

Inherits:
Object
  • Object
show all
Defined in:
lib/timecost/commit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(commit) ⇒ Commit

Returns a new instance of Commit.



6
7
8
9
10
11
# File 'lib/timecost/commit.rb', line 6

def initialize commit
	@commit = commit
	@note = nil
	@author = nil
	@date = nil
end

Instance Attribute Details

#authorObject

Returns the value of attribute author.



5
6
7
# File 'lib/timecost/commit.rb', line 5

def author
  @author
end

#commitObject

Returns the value of attribute commit.



5
6
7
# File 'lib/timecost/commit.rb', line 5

def commit
  @commit
end

#dateObject

Returns the value of attribute date.



5
6
7
# File 'lib/timecost/commit.rb', line 5

def date
  @date
end

#noteObject

Returns the value of attribute note.



5
6
7
# File 'lib/timecost/commit.rb', line 5

def note
  @note
end