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