Class: Ghub::Models::User
- Inherits:
-
Struct
- Object
- Struct
- Ghub::Models::User
- Defined in:
- lib/ghub/models/user.rb
Overview
Defines a user.
Instance Attribute Summary collapse
-
#avatar_url ⇒ Object
Returns the value of attribute avatar_url.
-
#events_url ⇒ Object
Returns the value of attribute events_url.
-
#followers_url ⇒ Object
Returns the value of attribute followers_url.
-
#following_url ⇒ Object
Returns the value of attribute following_url.
-
#gists_url ⇒ Object
Returns the value of attribute gists_url.
-
#gravatar_id ⇒ Object
Returns the value of attribute gravatar_id.
-
#html_url ⇒ Object
Returns the value of attribute html_url.
-
#id ⇒ Object
Returns the value of attribute id.
-
#login ⇒ Object
Returns the value of attribute login.
-
#node_id ⇒ Object
Returns the value of attribute node_id.
-
#organizations_url ⇒ Object
Returns the value of attribute organizations_url.
-
#received_events_url ⇒ Object
Returns the value of attribute received_events_url.
-
#repos_url ⇒ Object
Returns the value of attribute repos_url.
-
#site_admin ⇒ Object
Returns the value of attribute site_admin.
-
#starred_url ⇒ Object
Returns the value of attribute starred_url.
-
#subscriptions_url ⇒ Object
Returns the value of attribute subscriptions_url.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize ⇒ User
Returns a new instance of User.
28 29 30 31 |
# File 'lib/ghub/models/user.rb', line 28 def initialize(**) super freeze end |
Instance Attribute Details
#avatar_url ⇒ Object
Returns the value of attribute avatar_url
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def avatar_url @avatar_url end |
#events_url ⇒ Object
Returns the value of attribute events_url
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def events_url @events_url end |
#followers_url ⇒ Object
Returns the value of attribute followers_url
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def followers_url @followers_url end |
#following_url ⇒ Object
Returns the value of attribute following_url
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def following_url @following_url end |
#gists_url ⇒ Object
Returns the value of attribute gists_url
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def gists_url @gists_url end |
#gravatar_id ⇒ Object
Returns the value of attribute gravatar_id
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def gravatar_id @gravatar_id end |
#html_url ⇒ Object
Returns the value of attribute html_url
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def html_url @html_url end |
#id ⇒ Object
Returns the value of attribute id
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def id @id end |
#login ⇒ Object
Returns the value of attribute login
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def login @login end |
#node_id ⇒ Object
Returns the value of attribute node_id
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def node_id @node_id end |
#organizations_url ⇒ Object
Returns the value of attribute organizations_url
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def organizations_url @organizations_url end |
#received_events_url ⇒ Object
Returns the value of attribute received_events_url
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def received_events_url @received_events_url end |
#repos_url ⇒ Object
Returns the value of attribute repos_url
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def repos_url @repos_url end |
#site_admin ⇒ Object
Returns the value of attribute site_admin
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def site_admin @site_admin end |
#starred_url ⇒ Object
Returns the value of attribute starred_url
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def starred_url @starred_url end |
#subscriptions_url ⇒ Object
Returns the value of attribute subscriptions_url
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def subscriptions_url @subscriptions_url end |
#type ⇒ Object
Returns the value of attribute type
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def type @type end |
#url ⇒ Object
Returns the value of attribute url
6 7 8 |
# File 'lib/ghub/models/user.rb', line 6 def url @url end |
Class Method Details
.for ⇒ Object
26 |
# File 'lib/ghub/models/user.rb', line 26 def self.for(**) = new(**) |