Class: Squealer::Database::Connection
- Defined in:
- lib/squealer/database.rb
Instance Attribute Summary collapse
-
#collections ⇒ Object
readonly
Returns the value of attribute collections.
Instance Method Summary collapse
- #eval(string) ⇒ Object
-
#initialize(dbc) ⇒ Connection
constructor
A new instance of Connection.
- #source(collection, conditions = {}, &block) ⇒ Object
Constructor Details
#initialize(dbc) ⇒ Connection
Returns a new instance of Connection.
43 44 45 46 |
# File 'lib/squealer/database.rb', line 43 def initialize(dbc) @dbc = dbc @collections = {} end |
Instance Attribute Details
#collections ⇒ Object (readonly)
Returns the value of attribute collections.
41 42 43 |
# File 'lib/squealer/database.rb', line 41 def collections @collections end |
Instance Method Details
#eval(string) ⇒ Object
54 55 56 |
# File 'lib/squealer/database.rb', line 54 def eval(string) @dbc.eval(string) end |