Class: ForestAdminDatasourceToolkit::Components::Contracts::CollectionContract

Inherits:
Object
  • Object
show all
Defined in:
lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb

Instance Method Summary collapse

Instance Method Details

#aggregate(caller, filter, aggregation, limit = nil) ⇒ Object

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

#datasourceObject

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

#get_form(caller, name, data = nil, filter = nil, metas = {}) ⇒ Object

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

#nameObject

Raises:

  • (NotImplementedError)


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_chartObject

Raises:

  • (NotImplementedError)


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

#schemaObject

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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