Class: Gitwrap::User
- Inherits:
-
GithubConnection
- Object
- GithubConnection
- Gitwrap::User
- Defined in:
- lib/gitwrap/users.rb
Constant Summary
Constants inherited from GithubConnection
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#location ⇒ Object
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
-
#username ⇒ Object
Returns the value of attribute username.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hash) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(hash) ⇒ User
6 7 8 9 10 11 |
# File 'lib/gitwrap/users.rb', line 6 def initialize(hash) @name = hash['name'] @location = hash['location'] @email = hash['email'] @username = hash['login'] end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/gitwrap/users.rb', line 3 def email @email end |
#location ⇒ Object
Returns the value of attribute location.
3 4 5 |
# File 'lib/gitwrap/users.rb', line 3 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/gitwrap/users.rb', line 3 def name @name end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/gitwrap/users.rb', line 3 def username @username end |