Class: OnesnooperServer::Stores::InvalidStore

Inherits:
OnesnooperServer::Store show all
Defined in:
lib/onesnooper_server/stores/invalid_store.rb

Overview

Placeholder store for invalid configuration handling and testing purposes.

Instance Method Summary collapse

Methods inherited from OnesnooperServer::Store

#initialize

Constructor Details

This class inherits a constructor from OnesnooperServer::Store

Instance Method Details

#save!(timestamp, data) ⇒ Object


5
6
7
8
# File 'lib/onesnooper_server/stores/invalid_store.rb', line 5

def save!(timestamp, data)
  ::OnesnooperServer::Log.fatal "[#{self.class.name}] This is a dummy store, do not use it!"
  fail "InvalidStore selected as fallback, check your configuration!"
end