Class: Get::Db
- Inherits:
-
Object
- Object
- Get::Db
- Defined in:
- lib/get/db.rb
Class Attribute Summary collapse
-
.collection ⇒ Object
Returns the value of attribute collection.
-
.entity ⇒ Object
Returns the value of attribute entity.
-
.query_key ⇒ Object
Returns the value of attribute query_key.
-
.store ⇒ Object
Returns the value of attribute store.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(actions) ⇒ Db
constructor
A new instance of Db.
Constructor Details
Class Attribute Details
.collection ⇒ Object
Returns the value of attribute collection.
4 5 6 |
# File 'lib/get/db.rb', line 4 def collection @collection end |
.entity ⇒ Object
Returns the value of attribute entity.
4 5 6 |
# File 'lib/get/db.rb', line 4 def entity @entity end |
.query_key ⇒ Object
Returns the value of attribute query_key.
4 5 6 |
# File 'lib/get/db.rb', line 4 def query_key @query_key end |
.store ⇒ Object
Returns the value of attribute store.
4 5 6 |
# File 'lib/get/db.rb', line 4 def store @store end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 |
# File 'lib/get/db.rb', line 12 def call execute_queries rescue Horza::Errors::InvalidAncestry raise Get::Errors::InvalidAncestry end |