class Orthanc::Plugin

Attributes

base_uri[RW]

Public Class Methods

new(id = nil) click to toggle source
# File lib/orthanc/plugins.rb, line 6
def initialize(id = nil)
  client = Client.new
  self.base_uri = client.base_uri["/plugins/#{id}"]
end

Public Instance Methods

explorerjs() click to toggle source

GET /plugins/explorer.js

# File lib/orthanc/plugins.rb, line 12
def explorerjs # Get the JavaScript code that is injected by plugins into Orthanc Explorer
  handle_response(base_uri["explorer.js"].get)
end
fetch() click to toggle source

GET /plugins/{id}

# File lib/orthanc/plugins.rb, line 17
def fetch  # Fetch API response
  handle_response(base_uri.get)
end