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.


7
8
9
10
11
# File 'lib/gitlab/contributor.rb', line 7

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

Instance Attribute Details

#additionsObject

Returns the value of attribute additions.


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

def additions
  @additions
end

#commitsObject

Returns the value of attribute commits.


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

def commits
  @commits
end

#deletionsObject

Returns the value of attribute deletions.


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

def deletions
  @deletions
end

#emailObject

Returns the value of attribute email.


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

def email
  @email
end

#nameObject

Returns the value of attribute name.


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

def name
  @name
end