Sha256: 128dfe8ea489421f1c185c4d87704aaa32e22bfce4951db3c81c35463df458a9

Contents?: true

Size: 640 Bytes

Versions: 2

Compression:

Stored size: 640 Bytes

Contents

module Corpshort
  module Backends
    class Base
      class ConflictError < StandardError; end

      def initialize()
      end

      def put_link(link, create_only: false)
        raise NotImplementedError
      end

      def get_link(name)
        raise NotImplementedError
      end

      def delete_link(link_or_name)
        raise NotImplementedError
      end

      def rename_link(link, new_name)
        raise NotImplementedError
      end

      def list_links_by_url(url)
        raise NotImplementedError
      end

      def list_links(token: nil, limit: 30)
        raise NotImplementedError
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
corpshort-0.2.0 lib/corpshort/backends/base.rb
corpshort-0.1.0 lib/corpshort/backends/base.rb