Class: ConcurrentPipeline::Store

Inherits:
Object
  • Object
show all
Defined in:
lib/concurrent_pipeline/store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#changesetObject (readonly)

Returns the value of attribute changeset.



5
6
7
# File 'lib/concurrent_pipeline/store.rb', line 5

def changeset
  @changeset
end

#dbObject (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

#allObject



15
16
17
# File 'lib/concurrent_pipeline/store.rb', line 15

def all(...)
  db.find(...)
end

#createObject



19
20
21
# File 'lib/concurrent_pipeline/store.rb', line 19

def create(...)
  changeset.create(...)
end

#findObject



11
12
13
# File 'lib/concurrent_pipeline/store.rb', line 11

def find(...)
  db.find(...)
end

#updateObject



23
24
25
# File 'lib/concurrent_pipeline/store.rb', line 23

def update(...)
  changeset.update(...)
end