Sha256: d73c5234a9f433bfca5814a5542b0ffcd3b6ea6d104bb4aeff97f2a3b5dd7b08
Contents?: true
Size: 949 Bytes
Versions: 8
Compression:
Stored size: 949 Bytes
Contents
require "triviacrack/api/game" require "triviacrack/api/login" require "triviacrack/api/profile" require "triviacrack/api/question" require "triviacrack/api/user" # Public: Interface for interacting with the Trivia Crack API. module TriviaCrack module API class Client include TriviaCrack::API::Game include TriviaCrack::API::Login include TriviaCrack::API::User include TriviaCrack::API::Question include TriviaCrack::API::Profile # Public: Creates a new TriviaCrack::Session object using the given # session_id and user_id and assigns that session to this # TriviaCrack::API::Client. # # session_id - The Trivia Crack session ID. # user_id - The Trivia Crack user ID. def set_session(session_id, user_id) @session = TriviaCrack::Session.new session_id: session_id, user_id: user_id end end end end
Version data entries
8 entries across 8 versions & 1 rubygems