Module: OldOpenTox

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#metadataObject

Returns the value of attribute metadata


4
5
6
# File 'lib/validation.rb', line 4

def 
  
end

#uriObject

Returns the value of attribute uri


4
5
6
# File 'lib/validation.rb', line 4

def uri
  @uri
end

Instance Method Details

#deleteObject


17
18
19
# File 'lib/validation.rb', line 17

def delete 
  OpenTox::RestClientWrapper.delete @uri.to_s
end

#initialize(uri = nil) ⇒ Object


6
7
8
9
# File 'lib/validation.rb', line 6

def initialize(uri=nil)
   = {}
  self.uri = uri if uri
end

#load_metadataObject

loads metadata via yaml


12
13
14
15
# File 'lib/validation.rb', line 12

def 
  yaml = OpenTox::RestClientWrapper.get(uri,nil,{:accept => "application/x-yaml"})
   = YAML.load(yaml)
end