Class: Cero::Adapters::SqlAdapter
- Inherits:
-
AbstractAdapter
- Object
- AbstractAdapter
- Cero::Adapters::SqlAdapter
- Defined in:
- lib/cero/adapters/sql_adapter.rb
Instance Method Summary collapse
-
#initialize(collection = nil) ⇒ SqlAdapter
constructor
A new instance of SqlAdapter.
Methods inherited from AbstractAdapter
#all, #clear, #count, #create, #delete, #find, #first, #last, #query, #save, #update
Constructor Details
#initialize(collection = nil) ⇒ SqlAdapter
Returns a new instance of SqlAdapter.
5 6 7 8 |
# File 'lib/cero/adapters/sql_adapter.rb', line 5 def initialize(collection = nil) super @lock = Monitor.new end |