Class: ForestAdminDatasourceToolkit::Components::Contracts::CollectionContract
- Inherits:
-
Object
- Object
- ForestAdminDatasourceToolkit::Components::Contracts::CollectionContract
show all
- Defined in:
- lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb
Instance Method Summary
collapse
-
#aggregate(caller, filter, aggregation, limit = nil) ⇒ Object
-
#create(caller, data) ⇒ Object
-
#datasource ⇒ Object
-
#delete(caller, filter) ⇒ Object
-
#execute(caller, name, data, filter = nil) ⇒ Object
-
#get_form(caller, name, data = nil, filter = nil, metas = {}) ⇒ Object
-
#list(caller, filter, projection) ⇒ Object
-
#name ⇒ Object
-
#render_chart ⇒ Object
-
#schema ⇒ Object
-
#update(caller, filter, data) ⇒ Object
Instance Method Details
#aggregate(caller, filter, aggregation, limit = nil) ⇒ Object
41
42
43
|
# File 'lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb', line 41
def aggregate(caller, filter, aggregation, limit = nil)
raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end
|
#create(caller, data) ⇒ Object
25
26
27
|
# File 'lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb', line 25
def create(caller, data)
raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end
|
#datasource ⇒ Object
5
6
7
|
# File 'lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb', line 5
def datasource
raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end
|
#delete(caller, filter) ⇒ Object
37
38
39
|
# File 'lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb', line 37
def delete(caller, filter)
raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end
|
#execute(caller, name, data, filter = nil) ⇒ Object
17
18
19
|
# File 'lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb', line 17
def execute(caller, name, data, filter = nil)
raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end
|
21
22
23
|
# File 'lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb', line 21
def get_form(caller, name, data = nil, filter = nil, metas = {})
raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end
|
#list(caller, filter, projection) ⇒ Object
29
30
31
|
# File 'lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb', line 29
def list(caller, filter, projection)
raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end
|
#name ⇒ Object
13
14
15
|
# File 'lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb', line 13
def name
raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end
|
#render_chart ⇒ Object
45
46
47
|
# File 'lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb', line 45
def render_chart
raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end
|
#schema ⇒ Object
9
10
11
|
# File 'lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb', line 9
def schema
raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end
|
#update(caller, filter, data) ⇒ Object
33
34
35
|
# File 'lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb', line 33
def update(caller, filter, data)
raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end
|