diff options
author | Christoph Helma <helma@in-silico.de> | 2010-01-07 12:22:47 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2010-01-07 12:22:47 +0100 |
commit | c4d68eb599a6b563ac9967d3884ea31b0d619e38 (patch) | |
tree | 7fae9829ab42e04e39e34635b604ea8932c333bd /lib/compound.rb | |
parent | f178a17d3318082dfa923582715b39d72bd07c32 (diff) | |
parent | be07d3be0cc3236a22a47f0905c99f96508c9587 (diff) |
find method fixed
Diffstat (limited to 'lib/compound.rb')
-rw-r--r-- | lib/compound.rb | 8 |
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 |