Sha256: 5c2fa0192218fb3b4d4b3f09ab5a3d4193582dfd8b24f2519997361383bf67f6

Contents?: true

Size: 483 Bytes

Versions: 75

Compression:

Stored size: 483 Bytes

Contents

module RubyPitaya

  class Session

    attr_reader :id, :uid, :data, :metadata, :frontend_id

    attr_writer :uid, :data

    def initialize
      @id = ''
      @uid = ''
      @data = {}
      @metadata = {}
      @frontend_id = ''
    end

    def update(id, uid, data, metadata, frontend_id)
      @id = id
      @uid = uid
      @data = data
      @metadata = metadata
      @frontend_id = frontend_id
    end

    def authenticated?
      !@uid.strip.empty?
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
rubypitaya-2.27.1 ./lib/rubypitaya/core/session.rb
rubypitaya-2.27.0 ./lib/rubypitaya/core/session.rb
rubypitaya-2.26.3 ./lib/rubypitaya/core/session.rb
rubypitaya-2.26.2 ./lib/rubypitaya/core/session.rb
rubypitaya-2.26.1 ./lib/rubypitaya/core/session.rb
rubypitaya-2.26.0 ./lib/rubypitaya/core/session.rb
rubypitaya-2.25.1 ./lib/rubypitaya/core/session.rb
rubypitaya-2.25.0 ./lib/rubypitaya/core/session.rb
rubypitaya-2.24.0 ./lib/rubypitaya/core/session.rb
rubypitaya-2.23.0 ./lib/rubypitaya/core/session.rb
rubypitaya-2.22.0 ./lib/rubypitaya/core/session.rb
rubypitaya-2.21.0 ./lib/rubypitaya/core/session.rb
rubypitaya-2.20.0 ./lib/rubypitaya/core/session.rb
rubypitaya-2.19.1 ./lib/rubypitaya/core/session.rb
rubypitaya-2.19.0 ./lib/rubypitaya/core/session.rb
rubypitaya-2.18.0 ./lib/rubypitaya/core/session.rb
rubypitaya-2.17.0 ./lib/rubypitaya/core/session.rb
rubypitaya-2.16.0 ./lib/rubypitaya/core/session.rb
rubypitaya-2.15.0 ./lib/rubypitaya/core/session.rb
rubypitaya-2.14.1 ./lib/rubypitaya/core/session.rb