Sha256: 88e881eae2b2635794e37ec5cd8c704553cc57ebcdcabc64c306b3450a2d78b1

Contents?: true

Size: 440 Bytes

Versions: 8

Compression:

Stored size: 440 Bytes

Contents

require 'json'

module Alephant
  module Publisher
    module Request
      class DataMapper
        attr_reader :connection, :context

        def initialize(connection, context = {})
          @connection = connection
          @context    = context
        end

        def data
          raise NotImplementedError
        end

        protected

        def get(uri)
          connection.get uri
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
alephant-publisher-request-0.3.0 lib/alephant/publisher/request/data_mapper.rb
alephant-publisher-request-0.2.6 lib/alephant/publisher/request/data_mapper.rb
alephant-publisher-request-0.2.5 lib/alephant/publisher/request/data_mapper.rb
alephant-publisher-request-0.2.4 lib/alephant/publisher/request/data_mapper.rb
alephant-publisher-request-0.2.3 lib/alephant/publisher/request/data_mapper.rb
alephant-publisher-request-0.2.2 lib/alephant/publisher/request/data_mapper.rb
alephant-publisher-request-0.2.1 lib/alephant/publisher/request/data_mapper.rb
alephant-publisher-request-0.2.0 lib/alephant/publisher/request/data_mapper.rb