class RailsIdle::Storage::Base
Public Instance Methods
add(path, execution_time = nil)
click to toggle source
# File lib/rails-idle/storage/base.rb, line 5 def add(path, execution_time = nil) add_to_list path end
get(path, key)
click to toggle source
# File lib/rails-idle/storage/base.rb, line 9 def get(path, key) raise NotImplementedError end
objects_list()
click to toggle source
# File lib/rails-idle/storage/base.rb, line 17 def objects_list @objects_list ||= empty_list end
reset(path)
click to toggle source
# File lib/rails-idle/storage/base.rb, line 13 def reset(path) raise NotImplementedError end
Private Instance Methods
add_to_list(path)
click to toggle source
# File lib/rails-idle/storage/base.rb, line 27 def add_to_list(path) objects_list << path end
empty_list()
click to toggle source
# File lib/rails-idle/storage/base.rb, line 23 def empty_list [] end