joerivandervelde-molgenis-gem 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/molgenis_model.rb +17 -2
- metadata +3 -2
data/lib/molgenis_model.rb
CHANGED
@@ -23,10 +23,20 @@ module MOLGENIS # :nodoc:
|
|
23
23
|
}
|
24
24
|
|
25
25
|
}
|
26
|
-
puts all_entities.size
|
27
|
-
puts @modules.size
|
26
|
+
#puts all_entities.size
|
27
|
+
#puts @modules.size
|
28
28
|
all_entities
|
29
29
|
end
|
30
|
+
|
31
|
+
def field_count
|
32
|
+
count = 0;
|
33
|
+
all_entities.each do |e|
|
34
|
+
e.fields.each do |f|
|
35
|
+
count = count + 1
|
36
|
+
end
|
37
|
+
end
|
38
|
+
count
|
39
|
+
end
|
30
40
|
end
|
31
41
|
|
32
42
|
class ModuleModel
|
@@ -35,6 +45,11 @@ module MOLGENIS # :nodoc:
|
|
35
45
|
def initialize
|
36
46
|
@entities = []
|
37
47
|
end
|
48
|
+
|
49
|
+
def get_label
|
50
|
+
return name if label.nil?
|
51
|
+
return label
|
52
|
+
end
|
38
53
|
end
|
39
54
|
|
40
55
|
#Definition of an Entity in MOLGENIS model
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: joerivandervelde-molgenis-gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Morris Swertz
|
@@ -59,6 +59,7 @@ files:
|
|
59
59
|
- LICENCE
|
60
60
|
has_rdoc: true
|
61
61
|
homepage: http://gbic.target.rug.nl/trac/molgenis
|
62
|
+
licenses:
|
62
63
|
post_install_message:
|
63
64
|
rdoc_options:
|
64
65
|
- -N
|
@@ -81,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
82
|
requirements: []
|
82
83
|
|
83
84
|
rubyforge_project:
|
84
|
-
rubygems_version: 1.
|
85
|
+
rubygems_version: 1.3.5
|
85
86
|
signing_key:
|
86
87
|
specification_version: 1
|
87
88
|
summary: A Ruby implementation of the interaction of MOLGENIS datamodels (XML).
|