Sha256: 42db6f147caa8a1dbb40bad454fa5ee939b68438d4c592666b0edcb52447b637
Contents?: true
Size: 379 Bytes
Versions: 17
Compression:
Stored size: 379 Bytes
Contents
module SugarCRM; class Connection # Sets a new revision for a document. def set_document_revision(id, revision) login! unless logged_in? json = <<-EOF { \"session\": \"#{@session}\"\, \"document_revision\": \"#{revision}\"\, \"id\": #{id} } EOF json.gsub!(/^\s{6}/,'') send!(:set_document_revision, json) end end; end
Version data entries
17 entries across 17 versions & 1 rubygems