Sha256: ea5ebbd408c0bf63d85f05a92df346f80360e129e221a99d531704157663aca8

Contents?: true

Size: 641 Bytes

Versions: 4

Compression:

Stored size: 641 Bytes

Contents

module ActiveWorksheet
  module Adapters
    class BaseAdapter
      ADAPTER_NAME = "Base"

      attr_accessor :source, :authorization

      def initialize(source: nil, authorization: {})
        @source = source
        @authorization = authorization
      end

      def all
        raise NotImplementedError
      end

      def find
        raise NotImplementedError
      end

      def first
        raise NotImplementedError
      end

      def last
        raise NotImplementedError
      end

      def new
        raise NotImplementedError
      end

      def count
        raise NotImplementedError
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_worksheet-0.1.3 lib/active_worksheet/adapters/base_adapter.rb
active_worksheet-0.1.2 lib/active_worksheet/adapters/base_adapter.rb
active_worksheet-0.1.1 lib/active_worksheet/adapters/base_adapter.rb
active_worksheet-0.1.0 lib/active_worksheet/adapters/base_adapter.rb