Class: Gitlab::Contributor
- Inherits:
-
Object
- Object
- Gitlab::Contributor
- Defined in:
- lib/gitlab/contributor.rb
Instance Attribute Summary collapse
-
#additions ⇒ Object
Returns the value of attribute additions.
-
#commits ⇒ Object
Returns the value of attribute commits.
-
#deletions ⇒ Object
Returns the value of attribute deletions.
-
#email ⇒ Object
Returns the value of attribute email.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize ⇒ Contributor
constructor
A new instance of Contributor.
Constructor Details
#initialize ⇒ Contributor
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
#additions ⇒ Object
Returns the value of attribute additions.
5 6 7 |
# File 'lib/gitlab/contributor.rb', line 5 def additions @additions end |
#commits ⇒ Object
Returns the value of attribute commits.
5 6 7 |
# File 'lib/gitlab/contributor.rb', line 5 def commits @commits end |
#deletions ⇒ Object
Returns the value of attribute deletions.
5 6 7 |
# File 'lib/gitlab/contributor.rb', line 5 def deletions @deletions end |
#email ⇒ Object
Returns the value of attribute email.
5 6 7 |
# File 'lib/gitlab/contributor.rb', line 5 def email @email end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/gitlab/contributor.rb', line 5 def name @name end |