Sha256: c923b621300712104b73af13459e0c309094b45742ae95a5c3242fb9e9ae295e
Contents?: true
Size: 445 Bytes
Versions: 5
Compression:
Stored size: 445 Bytes
Contents
require 'peek/adapters/base' module Peek module Adapters class Memory < Base attr_accessor :requests def initialize(options = {}) @requests = {} end def get(request_id) @requests[request_id] end def save(request_id) return false if request_id.blank? @requests[request_id] = Peek.results end def reset @requests.clear end end end end
Version data entries
5 entries across 5 versions & 2 rubygems