class Ruqqus::User
Represents a Ruqqus
user account.
Public Instance Methods
badges()
click to toggle source
# File lib/ruqqus/types/user.rb, line 88 def badges #noinspection RubyResolve @badges ||= @data[:badges].map { |b| Badge.new(b) } end
ban_reason()
click to toggle source
# File lib/ruqqus/types/user.rb, line 114 def ban_reason @data[:ban_reason] end
bio()
click to toggle source
# File lib/ruqqus/types/user.rb, line 106 def bio @data[:bio] end
bio_html()
click to toggle source
# File lib/ruqqus/types/user.rb, line 110 def bio_html @data[:bio_html] end
comment_count()
click to toggle source
# File lib/ruqqus/types/user.rb, line 62 def comment_count @data[:comment_count] || 0 end
comment_rep()
click to toggle source
# File lib/ruqqus/types/user.rb, line 70 def comment_rep @data[:comment_rep] || 0 end
post_count()
click to toggle source
# File lib/ruqqus/types/user.rb, line 66 def post_count @data[:post_count] || 0 end
post_rep()
click to toggle source
# File lib/ruqqus/types/user.rb, line 74 def post_rep @data[:post_rep] || 0 end
profile_url()
click to toggle source
# File lib/ruqqus/types/user.rb, line 102 def profile_url @data[:profile_url] end
title()
click to toggle source
# File lib/ruqqus/types/user.rb, line 93 def title #noinspection RubyYardReturnMatch,RubyResolve @title ||= @data[:title] ? Title.new(@data[title]) : nil end
to_s()
click to toggle source
@return [String] the string representation of the object.
# File lib/ruqqus/types/user.rb, line 58 def to_s @data[:username] || inspect end
total_rep()
click to toggle source
# File lib/ruqqus/types/user.rb, line 78 def total_rep comment_rep + post_rep end
username()
click to toggle source
@return [String] the username of the account.
# File lib/ruqqus/types/user.rb, line 84 def username @data[:username] end