Class: ForestAdminDatasourceToolkit::Components::Contracts::DatasourceContract
- Inherits:
-
Object
- Object
- ForestAdminDatasourceToolkit::Components::Contracts::DatasourceContract
- Defined in:
- lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
Direct Known Subclasses
Instance Method Summary collapse
- #add_collection(collection) ⇒ Object
- #collections ⇒ Object
- #get_collection(name) ⇒ Object
- #render_chart(caller, name) ⇒ Object
Instance Method Details
#add_collection(collection) ⇒ Object
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 |
#collections ⇒ Object
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
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
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 |