summaryrefslogtreecommitdiff
path: root/lib/compound.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compound.rb')
-rw-r--r--lib/compound.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/compound.rb b/lib/compound.rb
index 9e1cee7..4385a7d 100644
--- a/lib/compound.rb
+++ b/lib/compound.rb
@@ -34,6 +34,14 @@ module OpenTox
obconversion(@inchi,'inchi','sdf')
end
+ def image
+ RestClient.get("#{@@cactus_uri}#{@inchi}/image")
+ end
+
+ def image_uri
+ "#{@@cactus_uri}#{@inchi}/image"
+ end
+
# Matchs a smarts string
def match?(smarts)
obconversion = OpenBabel::OBConversion.new