Class: ForestAdminDatasourceToolkit::Components::Contracts::DatasourceContract

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

Direct Known Subclasses

Datasource

Instance Method Summary collapse

Instance Method Details

#add_collection(collection) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb', line 13

def add_collection(collection)
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end

#collectionsObject

Raises:

  • (NotImplementedError)


5
6
7
# File 'lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb', line 5

def collections
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end

#get_collection(name) ⇒ Object

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb', line 9

def get_collection(name)
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end

#render_chart(caller, name) ⇒ Object

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb', line 17

def render_chart(caller, name)
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end