Sha256: 3771301bc015f6cdd66055cde6b9b83d0739c2b538de79f829609d96b932e564

Contents?: true

Size: 323 Bytes

Versions: 5

Compression:

Stored size: 323 Bytes

Contents

module Synchronisable
  class Gateway
    def fetch(params = {})
      not_implemented :fetch
    end

    def find(params)
      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

5 entries across 5 versions & 1 rubygems

Version Path
synchronisable-1.2.0 lib/synchronisable/gateway.rb
synchronisable-1.1.9 lib/synchronisable/gateway.rb
synchronisable-1.1.8 lib/synchronisable/gateway.rb
synchronisable-1.1.7 lib/synchronisable/gateway.rb
synchronisable-1.1.6 lib/synchronisable/gateway.rb