metamolecular-chemcaster 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/chemcaster/archive.rb +6 -0
- data/lib/chemcaster/execution.rb +19 -0
- data/lib/chemcaster/substance.rb +6 -0
- metadata +8 -5
@@ -0,0 +1,19 @@
|
|
1
|
+
module Chemcaster
|
2
|
+
class Execution < Item
|
3
|
+
attributes :cursor, :reverse, :next_cursor, :previous_cursor
|
4
|
+
resources :executable
|
5
|
+
attr_accessor :results
|
6
|
+
|
7
|
+
protected
|
8
|
+
|
9
|
+
def load_hash hash
|
10
|
+
super
|
11
|
+
|
12
|
+
hash['results'] ||= []
|
13
|
+
|
14
|
+
@results = hash['results'].inject([]) do |result, atts|
|
15
|
+
result << Link.new(atts)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metamolecular-chemcaster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Apodaca
|
@@ -35,18 +35,21 @@ files:
|
|
35
35
|
- Rakefile
|
36
36
|
- lib/chemcaster.rb
|
37
37
|
- lib/chemcaster/error.rb
|
38
|
-
- lib/chemcaster/image.rb
|
39
38
|
- lib/chemcaster/index.rb
|
40
39
|
- lib/chemcaster/item.rb
|
41
40
|
- lib/chemcaster/link.rb
|
42
41
|
- lib/chemcaster/media_type.rb
|
43
|
-
- lib/chemcaster/query.rb
|
44
|
-
- lib/chemcaster/registry.rb
|
45
42
|
- lib/chemcaster/representation.rb
|
46
43
|
- lib/chemcaster/service.rb
|
47
|
-
- lib/chemcaster/
|
44
|
+
- lib/chemcaster/registry.rb
|
48
45
|
- lib/chemcaster/registration.rb
|
46
|
+
- lib/chemcaster/substance.rb
|
47
|
+
- lib/chemcaster/structure.rb
|
49
48
|
- lib/chemcaster/component.rb
|
49
|
+
- lib/chemcaster/query.rb
|
50
|
+
- lib/chemcaster/execution.rb
|
51
|
+
- lib/chemcaster/archive.rb
|
52
|
+
- lib/chemcaster/image.rb
|
50
53
|
has_rdoc: false
|
51
54
|
homepage: http://chemcaster.com
|
52
55
|
licenses:
|