Sha256: 0b07d4040358732c621026c63ad6972d3dd26460da1d53f873c3072ef3ef5af9
Contents?: true
Size: 814 Bytes
Versions: 2
Compression:
Stored size: 814 Bytes
Contents
# frozen_string_literal: true # Public: An object representing a Trivia Crack Session. module TriviaCrack class Session # Public: The session id. attr_reader :session_id # Public: The id of the User associated with this session. attr_reader :user_id # Public: The username of the User associated with this session. attr_reader :username # Public: The device key. attr_reader :device_key # Public: The time at which the session will expire. attr_reader :expiration def initialize(session_id:, user_id: nil, username: nil, device_key: nil, expiration: nil) @session_id = session_id @user_id = user_id @username = username @device_key = device_key @expiration = expiration end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
triviacrack-0.8.0 | lib/triviacrack/session.rb |
triviacrack-0.7.0 | lib/triviacrack/session.rb |