Class: ConcurrentPipeline::Store
- Inherits:
-
Object
- Object
- ConcurrentPipeline::Store
- Defined in:
- lib/concurrent_pipeline/store.rb
Instance Attribute Summary collapse
-
#changeset ⇒ Object
readonly
Returns the value of attribute changeset.
-
#db ⇒ Object
readonly
Returns the value of attribute db.
Instance Method Summary collapse
- #all ⇒ Object
- #create ⇒ Object
- #find ⇒ Object
-
#initialize(db:, changeset:) ⇒ Store
constructor
A new instance of Store.
- #update ⇒ Object
Constructor Details
#initialize(db:, changeset:) ⇒ Store
Returns a new instance of Store.
6 7 8 9 |
# File 'lib/concurrent_pipeline/store.rb', line 6 def initialize(db:, changeset:) @changeset = changeset @db = db end |
Instance Attribute Details
#changeset ⇒ Object (readonly)
Returns the value of attribute changeset.
5 6 7 |
# File 'lib/concurrent_pipeline/store.rb', line 5 def changeset @changeset end |
#db ⇒ Object (readonly)
Returns the value of attribute db.
5 6 7 |
# File 'lib/concurrent_pipeline/store.rb', line 5 def db @db end |
Instance Method Details
#all ⇒ Object
15 16 17 |
# File 'lib/concurrent_pipeline/store.rb', line 15 def all(...) db.find(...) end |
#create ⇒ Object
19 20 21 |
# File 'lib/concurrent_pipeline/store.rb', line 19 def create(...) changeset.create(...) end |
#find ⇒ Object
11 12 13 |
# File 'lib/concurrent_pipeline/store.rb', line 11 def find(...) db.find(...) end |
#update ⇒ Object
23 24 25 |
# File 'lib/concurrent_pipeline/store.rb', line 23 def update(...) changeset.update(...) end |