Sha256: ff08d7ca6a5433c3b4d8383165749a15b5d9f77f7c954ceb8b32cf883deafad4

Contents?: true

Size: 337 Bytes

Versions: 6

Compression:

Stored size: 337 Bytes

Contents

module Synchronisable
  class Gateway
    attr_reader :synchronizer

    def fetch
      not_implemented :fetch
    end

    def find(id)
      not_implemented :find
    end

    protected

    def not_implemented(method)
      raise NotImplementedError,
        I18n.t('errors.gateway_method_missing', method: method)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
synchronisable-1.0.4 lib/synchronisable/gateway.rb
synchronisable-1.0.3 lib/synchronisable/gateway.rb
synchronisable-1.0.2 lib/synchronisable/gateway.rb
synchronisable-1.0.1 lib/synchronisable/gateway.rb
synchronisable-1.0.0 lib/synchronisable/gateway.rb
synchronisable-0.0.9 lib/synchronisable/gateway.rb