Sha256: 5137bc31ff3d061d666e1eefbeeeb460157ae2d8a488f5ed3d29d280e57a726a

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

module RubyCAS
  module Server
    module Core
      module Tickets
        class Storage
          class << self
            attr_accessor :storage
          end

          def initialize
            self.class.storage = {} unless self.class.storage
          end

          def save
            self.class.storage[@id] = self
            return true
          end

          def save!
            self.class.storage[@id] = self
            return true
          end

        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubycas-server-memory-0.0.2 lib/rubycas/server/memory/storage.rb
rubycas-server-memory-0.0.1 lib/rubycas/server/memory/storage.rb