lib/rest/change.rb
# Lazy Updating of the given Record.
Lazy Updating of the given Record.
Lazy Updating of the given Record .
def patch_record rid	    
    logger.progname = 'RestChange#PatchRecord'
    content = yield
    if content.is_a? Hash
      begin
        @res["/document/#{ActiveOrient.database}/#{rid}"].patch content.to_orient.to_json
      rescue Exception => e
        logger.error{e.message}
      end
    else
  	  logger.error{"FAILED: The Block must provide an Hash with properties to be updated"}
    end
  end
def patch_record rid logger . progname = 'RestChange#PatchRecord' content = yield if content . is_a? Hash begin @res [ "/document/#{ActiveOrient.database}/#{rid}" ] . patch content . to_orient . to_json rescue Exception => e logger . error { e . message } end else logger . error { "FAILED: The Block must provide an Hash with properties to be updated" } end end
Lazy Updating of the given Record.
Lazy Updating of the given Record .
# :nodoc:   (used by #update )
rid
<not_specific>