Class: Ruqqus::User
Overview
Represents a Ruqqus user account.
Instance Attribute Summary collapse
-
#badges ⇒ Array<Badge>
readonly
An array of badges associated with this account.
-
#ban_reason ⇒ String?
readonly
The reason the user was banned if they were, otherwise
nil
. -
#banner_url ⇒ String
readonly
The URL for the banner image associated with the account.
-
#bio ⇒ String
readonly
A brief statement/biography the user has associated with their account.
-
#bio_html ⇒ String
readonly
A brief statement/biography the user has associated with their account in HTML format.
-
#comment_count ⇒ Integer
readonly
The number of comments the user has created.
-
#comment_rep ⇒ Integer
readonly
The amount of rep the user has earned from comments.
-
#post_count ⇒ Integer
readonly
The number of posts the user has created.
-
#post_rep ⇒ Integer
readonly
The amount of rep the user has earned from posts.
-
#profile_url ⇒ String
readonly
The URL for the profile image associated with the account.
-
#title ⇒ Title?
readonly
The title the user has associated with their account, or
nil
if none is assigned. -
#total_rep ⇒ Integer
readonly
The total amount of rep the user has earned from comments and posts.
Attributes inherited from ItemBase
#created, #created_utc, #id, #permalink
Instance Method Summary collapse
-
#to_s ⇒ String
The string representation of the object.
-
#username ⇒ String
The username of the account.
Methods inherited from ItemBase
Instance Attribute Details
#badges ⇒ Array<Badge> (readonly)
Returns an array of badges associated with this account.
|
# File 'lib/ruqqus/types/user.rb', line 28
|
#ban_reason ⇒ String? (readonly)
Returns the reason the user was banned if they were, otherwise nil
.
|
# File 'lib/ruqqus/types/user.rb', line 52
|
#banner_url ⇒ String (readonly)
Returns the URL for the banner image associated with the account.
|
# File 'lib/ruqqus/types/user.rb', line 36
|
#bio ⇒ String (readonly)
Returns A brief statement/biography the user has associated with their account.
|
# File 'lib/ruqqus/types/user.rb', line 44
|
#bio_html ⇒ String (readonly)
Returns a brief statement/biography the user has associated with their account in HTML format.
|
# File 'lib/ruqqus/types/user.rb', line 48
|
#comment_count ⇒ Integer (readonly)
Returns the number of comments the user has created.
|
# File 'lib/ruqqus/types/user.rb', line 8
|
#comment_rep ⇒ Integer (readonly)
Returns the amount of rep the user has earned from comments.
|
# File 'lib/ruqqus/types/user.rb', line 16
|
#post_count ⇒ Integer (readonly)
Returns the number of posts the user has created.
|
# File 'lib/ruqqus/types/user.rb', line 12
|
#post_rep ⇒ Integer (readonly)
Returns the amount of rep the user has earned from posts.
|
# File 'lib/ruqqus/types/user.rb', line 20
|
#profile_url ⇒ String (readonly)
Returns the URL for the profile image associated with the account.
|
# File 'lib/ruqqus/types/user.rb', line 40
|
#title ⇒ Title? (readonly)
Returns the title the user has associated with their account, or nil
if none is assigned.
|
# File 'lib/ruqqus/types/user.rb', line 32
|
#total_rep ⇒ Integer (readonly)
Returns the total amount of rep the user has earned from comments and posts.
|
# File 'lib/ruqqus/types/user.rb', line 24
|
Instance Method Details
#to_s ⇒ String
Returns the string representation of the object.
58 59 60 |
# File 'lib/ruqqus/types/user.rb', line 58 def to_s @data[:username] || inspect end |
#username ⇒ String
Returns the username of the account.
84 85 86 |
# File 'lib/ruqqus/types/user.rb', line 84 def username @data[:username] end |