Sha256: 8a0c6c69fe7ceecc6c789aaf1cc769e45541afaadbf6151d7eba830170ba1446

Contents?: true

Size: 1.63 KB

Versions: 9

Compression:

Stored size: 1.63 KB

Contents

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

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

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

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

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

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

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

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

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

        def aggregate(caller, filter, aggregation, limit = nil)
          raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
        end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
forest_admin_datasource_toolkit-1.0.0.pre.beta.29 lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.28 lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.27 lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.26 lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.25 lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.24 lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.23 lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.22 lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.21 lib/forest_admin_datasource_toolkit/components/contracts/collection_contract.rb