nicholalexander/basket

View on GitHub
lib/basket/backend_adapter.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Basket
  class BackendAdapter
    def data
      raise "must implement data"
    end

    def push(queue, data)
      raise "must implement push with queue and data params"
    end

    def length(queue)
      raise "must implement length with queue param"
    end

    def read(queue)
      raise "must implement read with queue param"
    end

    def clear(queue)
      raise "must implement clear with queue param"
    end
  end
end