Class: PersistedQueries::Store
- Inherits:
-
Object
- Object
- PersistedQueries::Store
- Defined in:
- lib/persisted_queries/store.rb
Class Attribute Summary collapse
-
.path ⇒ Object
Returns the value of attribute path.
-
.schema ⇒ Object
Returns the value of attribute schema.
Class Method Summary collapse
Class Attribute Details
.path ⇒ Object
Returns the value of attribute path.
7 8 9 |
# File 'lib/persisted_queries/store.rb', line 7 def path @path end |
.schema ⇒ Object
Returns the value of attribute schema.
6 7 8 |
# File 'lib/persisted_queries/store.rb', line 6 def schema @schema end |
Class Method Details
.add(client:, query:, hash:) ⇒ Object
21 22 23 24 |
# File 'lib/persisted_queries/store.rb', line 21 def add(client:, query:, hash:) path = client_path(client.underscore).mkpath AddOperation.new(client: client, query: query, hash: hash, store: self).perform end |
.client_path(client) ⇒ Object
26 27 28 |
# File 'lib/persisted_queries/store.rb', line 26 def client_path(client) path + client.to_s end |