Sha256: 264edf4f5b7471c0f3fa1052ac6c61a85af59e3c97353f91123de83b9c679fba

Contents?: true

Size: 834 Bytes

Versions: 17

Compression:

Stored size: 834 Bytes

Contents

module ForestAdminDatasourceToolkit
  module Components
    module Contracts
      class DatasourceContract
        def collections
          raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
        end

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

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

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

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
forest_admin_datasource_toolkit-1.0.0.pre.beta.40 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.39 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.38 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.37 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.36 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.35 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.34 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.33 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.32 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.31 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.30 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.29 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.28 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.27 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.26 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.25 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.24 lib/forest_admin_datasource_toolkit/components/contracts/datasource_contract.rb