module Store::Bug

Public Class Methods

[](bug_id) click to toggle source
# File lib/store.rb, line 66
def Bug.[](bug_id)
  ::Store::read(@@bugs, bug_id)
end
cache(old={}) click to toggle source
# File lib/store.rb, line 76
def Bug.cache(old={})
  ::Store::cache("bugs", @@bugs, old)
end
index(bug) click to toggle source
# File lib/store.rb, line 70
def Bug.index(bug)
  ::Store::write(@@bugs, bug[:bug_id], bug)
rescue
  bug
end