grom 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grom/node.rb +4 -4
- data/lib/grom/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9833c1d5114eb808c5f60023b2fe62547b132b73
|
4
|
+
data.tar.gz: 4ee263710c46ce0a5c2ad86b240f1d788bbc7f95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40aefc68a2222bdd48c1aee64365973d4a856d97d06f1b2633017839f1499a9aa7a8ec600fba7b283aee866db3a6758eaf0430313099342d61e11382be74e907
|
7
|
+
data.tar.gz: def6fb6667d607503b40566cef8d64406790017552a30fb576460c14706908df57fff9c86b70af4d4b82dbd15cf8166c1f869bc808cb486418c545d965ba8880
|
data/lib/grom/node.rb
CHANGED
@@ -5,7 +5,6 @@ module Grom
|
|
5
5
|
def initialize(statements)
|
6
6
|
@statements = statements
|
7
7
|
|
8
|
-
set_id
|
9
8
|
populate
|
10
9
|
end
|
11
10
|
|
@@ -19,12 +18,13 @@ module Grom
|
|
19
18
|
|
20
19
|
private
|
21
20
|
|
22
|
-
def
|
23
|
-
|
24
|
-
instance_variable_set('@
|
21
|
+
def set_graph_id
|
22
|
+
graph_id = Grom::Helper.get_id(@statements.first.subject)
|
23
|
+
instance_variable_set('@graph_id'.to_sym, graph_id)
|
25
24
|
end
|
26
25
|
|
27
26
|
def populate
|
27
|
+
set_graph_id
|
28
28
|
@statements.each do |statement|
|
29
29
|
attribute_name = Grom::Helper.get_id(statement.predicate)
|
30
30
|
attribute_value = statement.object.to_s
|
data/lib/grom/version.rb
CHANGED