Class: Rack::MiniProfiler::AbstractStore

Inherits:
Object
  • Object
show all
Defined in:
lib/mini_profiler/storage/abstract_store.rb

Direct Known Subclasses

FileStore, MemcacheStore, MemoryStore, RedisStore

Instance Method Summary collapse

Instance Method Details

#diagnostics(user) ⇒ Object



25
26
27
28
# File 'lib/mini_profiler/storage/abstract_store.rb', line 25

def diagnostics(user)
  # this is opt in, no need to explode if not implemented
  ""
end

#get_unviewed_ids(user) ⇒ Object

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/mini_profiler/storage/abstract_store.rb', line 21

def get_unviewed_ids(user)
  raise NotImplementedError.new("get_unviewed_ids is not implemented")
end

#load(id) ⇒ Object

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/mini_profiler/storage/abstract_store.rb', line 9

def load(id)
  raise NotImplementedError.new("load is not implemented")
end

#save(page_struct) ⇒ Object

Raises:

  • (NotImplementedError)


5
6
7
# File 'lib/mini_profiler/storage/abstract_store.rb', line 5

def save(page_struct)
  raise NotImplementedError.new("save is not implemented")
end

#set_unviewed(user, id) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/mini_profiler/storage/abstract_store.rb', line 13

def set_unviewed(user, id)
  raise NotImplementedError.new("set_unviewed is not implemented")
end

#set_viewed(user, id) ⇒ Object

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/mini_profiler/storage/abstract_store.rb', line 17

def set_viewed(user, id)
  raise NotImplementedError.new("set_viewed is not implemented")
end