Sha256: 7cf2e12e3c1066f486a85fa3eba595a046c08354289861a006cf7cb6d34d9c20

Contents?: true

Size: 396 Bytes

Versions: 3

Compression:

Stored size: 396 Bytes

Contents

module DataMapper
  module Parse
    class Resource < ::Nestful::Resource
      attr_reader :options

      def ==(resource)
        url == resource.url && options == resource.options
      end

      def delete(options = {})
        Nestful.delete(url, options.merge(@options))
      end

      def put(options = {})
        Nestful.put(url, options.merge(@options))
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dm-parse-0.2.1 lib/parse/resource.rb
dm-parse-0.2.0 lib/parse/resource.rb
dm-parse-0.1.0 lib/parse/resource.rb