class Marsdawn::Storage::Test

Public Class Methods

new(config, opts) click to toggle source
Calls superclass method Marsdawn::Storage::Base::new
# File lib/marsdawn/storage/test.rb, line 7
def initialize config, opts
  super
  @storage = {}
end

Public Instance Methods

get(path) click to toggle source
# File lib/marsdawn/storage/test.rb, line 16
def get path
  @storage[path]
end
set(path, page, exvars, sysinfo) click to toggle source
# File lib/marsdawn/storage/test.rb, line 12
def set path, page, exvars, sysinfo
  @storage[path] = {:page => page, :exvars => exvars, :sysinfo => sysinfo}
end