Class: Wlog::GitCommit

Inherits:
Object
  • Object
show all
Defined in:
lib/wlog/domain/git_commit.rb

Overview

Author:

  • Simon Symeonidis

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGitCommit

Returns a new instance of GitCommit.



5
6
7
# File 'lib/wlog/domain/git_commit.rb', line 5

def initialize
  @commit = @author = @shortlog = @message = ""
end

Instance Attribute Details

#authorObject

Returns the value of attribute author.



9
10
11
# File 'lib/wlog/domain/git_commit.rb', line 9

def author
  @author
end

#commitObject

Returns the value of attribute commit.



9
10
11
# File 'lib/wlog/domain/git_commit.rb', line 9

def commit
  @commit
end

#messageObject

Returns the value of attribute message.



9
10
11
# File 'lib/wlog/domain/git_commit.rb', line 9

def message
  @message
end

#shortlogObject

Returns the value of attribute shortlog.



9
10
11
# File 'lib/wlog/domain/git_commit.rb', line 9

def shortlog
  @shortlog
end