oeh-client 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/oehclient/data/node.rb +10 -1
- data/lib/oehclient/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e5f5f5ee74e55552179f36502107e4b049ab997
|
4
|
+
data.tar.gz: d3ad909a082698a2c5bd4fe2fdb692ef2fad05d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8288315e7245d48b1f2d7554121ea813226feb86b17a1d947ef34646f494678af1b8e983ce348ddf580b66e93b90e921c658d6b4a4dac5fe310d97c8781476a1
|
7
|
+
data.tar.gz: e7e33d37a9d51fa49711a10c10858caea4c6cf80546ee89e83c7b2665d7d18d03cddf44c0cc3eede34c2db60f5c081ce70a30822aaa22c8bceb814478c29cee0
|
data/lib/oehclient/data/node.rb
CHANGED
@@ -18,6 +18,15 @@ class OEHClient::Data::Node
|
|
18
18
|
|
19
19
|
end
|
20
20
|
|
21
|
+
# return the names of each of the attributes of the current nodes of the structure
|
22
|
+
def attribute_names()
|
23
|
+
name_collection = Array.new
|
24
|
+
instance_variable_names.each { | structure_attribute | name_collection << structure_attribute.slice!(0)}
|
25
|
+
|
26
|
+
name_collection
|
27
|
+
end # def attribute_names
|
28
|
+
|
29
|
+
|
21
30
|
private
|
22
31
|
|
23
32
|
# add_collection dynamically create an attr_accessor as an array of Oeh::Structure::Node
|
@@ -49,7 +58,7 @@ class OEHClient::Data::Node
|
|
49
58
|
self.class.send(:attr_accessor, accessor_name)
|
50
59
|
instance_variable_set("@#{accessor_name}", (value.kind_of?(Hash) ? OEHClient::Data::Node.new(value) : value))
|
51
60
|
|
52
|
-
end
|
61
|
+
end
|
53
62
|
|
54
63
|
|
55
64
|
end
|
data/lib/oehclient/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oeh-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Balliet
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|