class Orthanc::Attachment
Attributes
base_uri[RW]
Public Class Methods
new(resource, id = nil)
click to toggle source
# File lib/orthanc/attachments.rb, line 6 def initialize(resource, id = nil) self.base_uri = resource["/attachments/#{id}"] end
Public Instance Methods
compressed_data()
click to toggle source
GET /{resourceType}/{id}/attachments/{name}/compressed-data
# File lib/orthanc/attachments.rb, line 22 def compressed_data handle_response(base_uri["compressed-data"].get) end
compressed_md5()
click to toggle source
GET /{resourceType}/{id}/attachments/{name}/compressed-md5
# File lib/orthanc/attachments.rb, line 27 def compressed_md5 handle_response(base_uri["compressed-md5"].get) end
compressed_size()
click to toggle source
GET /{resourceType}/{id}/attachments/{name}/compressed-size
# File lib/orthanc/attachments.rb, line 32 def compressed_size handle_response(base_uri["compressed-size"].get) end
data()
click to toggle source
GET /{resourceType}/{id}/attachments/{name}/data
# File lib/orthanc/attachments.rb, line 37 def data handle_response(base_uri["data"].get) end
delete_attachment()
click to toggle source
DELETE /{resourceType}/{id}/attachments/{name}
# File lib/orthanc/attachments.rb, line 12 def delete_attachment handle_response(base_uri["attachments/#{name}"].delete) end
md5()
click to toggle source
GET /{resourceType}/{id}/attachments/{name}/md5
# File lib/orthanc/attachments.rb, line 42 def md5 handle_response(base_uri["md5"].get) end
modify(payload = {})
click to toggle source
PUT /{resourceType}/{id}/attachments/{name}
# File lib/orthanc/attachments.rb, line 17 def modify(payload = {}) handle_response(base_uri["attachments/#{name}"].put(payload)) end
size()
click to toggle source
GET /{resourceType}/{id}/attachments/{name}/size
# File lib/orthanc/attachments.rb, line 47 def size handle_response(base_uri["size"].get) end
verify_md5()
click to toggle source
POST /{resourceType}/{id}/attachments/{name}/verify-md5
# File lib/orthanc/attachments.rb, line 52 def verify_md5 handle_response(base_uri["verify-md5"].get) end