Sha256: a6266806d33a2b858468b9fe41797d5f41d0f8f71937d5bc2ddc2d88f80b66cf

Contents?: true

Size: 785 Bytes

Versions: 8

Compression:

Stored size: 785 Bytes

Contents

# 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

8 entries across 8 versions & 1 rubygems

Version Path
triviacrack-0.6.0 lib/triviacrack/session.rb
triviacrack-0.5.1 lib/triviacrack/session.rb
triviacrack-0.5.0 lib/triviacrack/session.rb
triviacrack-0.4.0 lib/triviacrack/session.rb
triviacrack-0.3.2 lib/triviacrack/session.rb
triviacrack-0.3.0 lib/triviacrack/session.rb
triviacrack-0.2.0 lib/triviacrack/session.rb
triviacrack-0.1.0 lib/triviacrack/session.rb