Class: Gitlab::Contributor

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/contributor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContributor

Returns a new instance of Contributor


5
6
7
# File 'lib/gitlab/contributor.rb', line 5

def initialize
  @commits, @additions, @deletions = 0, 0, 0
end

Instance Attribute Details

#additionsObject

Returns the value of attribute additions


3
4
5
# File 'lib/gitlab/contributor.rb', line 3

def additions
  @additions
end

#commitsObject

Returns the value of attribute commits


3
4
5
# File 'lib/gitlab/contributor.rb', line 3

def commits
  @commits
end

#deletionsObject

Returns the value of attribute deletions


3
4
5
# File 'lib/gitlab/contributor.rb', line 3

def deletions
  @deletions
end

#emailObject

Returns the value of attribute email


3
4
5
# File 'lib/gitlab/contributor.rb', line 3

def email
  @email
end

#nameObject

Returns the value of attribute name


3
4
5
# File 'lib/gitlab/contributor.rb', line 3

def name
  @name
end