Class: OpenTox::Algorithm::Generic

Inherits:
Object
  • Object
show all
Defined in:
lib/algorithm.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#dateObject

Returns the value of attribute date.



8
9
10
# File 'lib/algorithm.rb', line 8

def date
  @date
end

#titleObject

Returns the value of attribute title.



8
9
10
# File 'lib/algorithm.rb', line 8

def title
  @title
end

#uriObject

Returns the value of attribute uri.



8
9
10
# File 'lib/algorithm.rb', line 8

def uri
  @uri
end

Class Method Details

.find(uri) ⇒ Object



10
11
12
13
# File 'lib/algorithm.rb', line 10

def self.find(uri)
  owl = OpenTox::Owl.from_uri(uri, "Algorithm")
  return self.new(owl)
end