Sha256: b3aaf7d979ab7155bb32e0b7f15010a083b83caecbd24e74d7947721a0cb6434
Contents?: true
Size: 959 Bytes
Versions: 35
Compression:
Stored size: 959 Bytes
Contents
module Rubydora::RestApiClient # Fall-back implementations for fcrepo < 3.4 module V33 # @param [Rubydora::Repository] repository def self.extended repository repository.send(:extend, Rubydora::Soap) end # {include:RestApiClient#relationships} def relationships options = {} nil end # {include:RestApiClient#add_relationship} def add_relationship options = {} pid = options.delete(:pid) || options[:subject] self.soap.request :add_relationship, :pid => pid, :relationship => options[:predicate], :object => options[:object], :isLiteral => false, :datatype => nil end # {include:RestApiClient#purge_relationship} def purge_relationship options = {} pid = options.delete(:pid) || options[:subject] self.soap.request :purge_relationship, :pid => pid, :relationship => options[:predicate], :object => options[:object], :isLiteral => false, :datatype => nil end end end
Version data entries
35 entries across 35 versions & 1 rubygems