summaryrefslogtreecommitdiff
path: root/lib/model.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2010-03-15 09:13:33 +0100
committerChristoph Helma <helma@in-silico.de>2010-03-15 09:13:33 +0100
commit8657902cae694470dc316b60a186a8dcc9f84f07 (patch)
tree8d1d6729a952e8cadf1f4c0fda2bd53733dfe146 /lib/model.rb
parente1cb8e39ca0331ea2db7e633c3bc708aa691b0b3 (diff)
tests for yaml representation working
Diffstat (limited to 'lib/model.rb')
-rw-r--r--lib/model.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/model.rb b/lib/model.rb
index 5dcc462..d87a006 100644
--- a/lib/model.rb
+++ b/lib/model.rb
@@ -22,6 +22,10 @@ module OpenTox
resource.post(self.to_yaml, :content_type => "application/x-yaml").chomp.to_s
end
+
+ def self.find_all
+ RestClient.get(@@config[:services]["opentox-model"]).chomp.split("\n")
+ end
=begin
include Owl
@@ -49,10 +53,6 @@ module OpenTox
lazar
end
- def self.find_all
- RestClient.get(@@config[:services]["opentox-model"]).split("\n")
- end
-
def self.find(uri)
yaml = RestClient.get(uri, :accept => "application/x-yaml")
OpenTox::Model::Lazar.from_yaml(yaml)