Sha256: 73a145fc38edc9b00e9ad129e5cba2573118433cf62bda2df4f49f43bf75d0d0

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 Bytes

Contents

class LsOmniauth::AbstractSession
  attr_reader :session, :key, :value

  def initialize(session, key);
    @session  = session
    @key      = key
    @value    = session[key]
  end

  def set(value); @session[@key] = value end
  def get; @session[@key] end
  def getOrElse(v2)
    v = get
    v.blank? ? v2 : v
  end
  def clear; @session[@key] = nil end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ls-omniauth-3.0.3 app/models/ls_omniauth/abstract_session.rb