Sha256: 6e8734cd3740d52b0a5c04356a358317f35c1ca8e11a32e9536b29af4457c12c

Contents?: true

Size: 457 Bytes

Versions: 3

Compression:

Stored size: 457 Bytes

Contents

module ROM
  module HTTP
    class Relation < ROM::Relation
      include Enumerable

      adapter :http

      forward :with_request_method, :with_path, :append_path, :with_options,
              :with_params, :clear_params

      def insert(*args)
        dataset.insert(*args)
      end
      alias_method :<<, :insert

      def update(*args)
        dataset.update(*args)
      end

      def delete
        dataset.delete
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rom-http-0.1.1 lib/rom/http/relation.rb
rom-http-0.1.0 lib/rom/http/relation.rb
rom-http-0.0.1 lib/rom/http/relation.rb