class HQTrivia
All HQTrivia
functionality, whether extended or just here.
Attributes
key[R]
Get the key back. In case you left it at the door.
Public Class Methods
new(key)
click to toggle source
Initialize a new HQTrivia
Object, via a key. @param key [String] your API Key.
# File lib/hqtrivia.rb, line 9 def initialize(key) @key = key end
Public Instance Methods
badges(id)
click to toggle source
Get a user's badges (by user ID) @return [Badges] the badges
# File lib/hqtrivia.rb, line 30 def badges(id) Badges.new(id, @key) end
me()
click to toggle source
Get the authed user's profile @return [Me] the you
# File lib/hqtrivia.rb, line 24 def me Me.new(@key) end
schedule()
click to toggle source
@return [Schedule] the show schedule
# File lib/hqtrivia.rb, line 35 def schedule Schedule.new(@key) end
user(id)
click to toggle source
Get a user by ID @return [User] the new user
# File lib/hqtrivia.rb, line 18 def user(id) User.new(id, @key) end