Class: Gitlab::User
- Inherits:
-
Object
- Object
- Gitlab::User
- Defined in:
- lib/gitlab_reviewbot/gitlab.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#review_count ⇒ Object
Returns the value of attribute review_count.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id, username, review_count = 0) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(id, username, review_count = 0) ⇒ User
Returns a new instance of User.
11 12 13 14 15 |
# File 'lib/gitlab_reviewbot/gitlab.rb', line 11 def initialize(id, username, review_count = 0) @id = id @username = username @review_count = review_count end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/gitlab_reviewbot/gitlab.rb', line 8 def id @id end |
#review_count ⇒ Object
Returns the value of attribute review_count.
9 10 11 |
# File 'lib/gitlab_reviewbot/gitlab.rb', line 9 def review_count @review_count end |
#username ⇒ Object
Returns the value of attribute username.
7 8 9 |
# File 'lib/gitlab_reviewbot/gitlab.rb', line 7 def username @username end |
Instance Method Details
#==(other) ⇒ Object
17 18 19 |
# File 'lib/gitlab_reviewbot/gitlab.rb', line 17 def ==(other) id == other.id end |