Sha256: 7c0c635e02425c029f3f523d25ec19d138579a60bd5903b26cdfc1c38a3e5f43

Contents?: true

Size: 866 Bytes

Versions: 3

Compression:

Stored size: 866 Bytes

Contents

# encoding: utf-8

require 'axiom-do-adapter'

module Axiom
  module Adapter

    # Reopenend to add functionality that should eventually
    # be puhsed down to Adapter::DataObjects proper, or whatever
    # will be the base class.
    #
    class DataObjects

      extend Adapter

      include Equalizer.new(:uri)

      # The URI this adapter uses for establishing a connection
      #
      # @return [Addressable::URI]
      #
      # @api private
      attr_reader :uri

      # Wrap the given +relation+ with a gateway
      #
      # @param [Axiom::Relation] relation
      #   the relation to wrap with a gateway
      #
      # @return [Axiom::Relation::Gateway]
      #
      # @api private
      def gateway(relation)
        Axiom::Relation::Gateway.new(self, relation)
      end

    end # class DataObjects
  end # module Adapter
end # module Axiom

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rom-relation-0.1.2 lib/rom/support/axiom/adapter/data_objects.rb
rom-relation-0.1.1 lib/rom/support/axiom/adapter/data_objects.rb
rom-relation-0.1.0 lib/rom/support/axiom/adapter/data_objects.rb