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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b7c11334e6329e4cb2e3742c5dfc026e85eb63b
4
- data.tar.gz: ec01649af390e9f5663fea23afbc2113a04505bc
3
+ metadata.gz: 3e5f5f5ee74e55552179f36502107e4b049ab997
4
+ data.tar.gz: d3ad909a082698a2c5bd4fe2fdb692ef2fad05d1
5
5
  SHA512:
6
- metadata.gz: aa9b2d77a89babbb98587024d1d15c8491ff6d548f6f580249d6e42f5310111f065d1a4715264be2db0229acff2debd3d975bcba239925d04b571d7d766f4830
7
- data.tar.gz: 811069af84a9d4968852a607bbb136876876d55d7428895ff0e572364999e41ba4e5d705334bc96c593e3d679ca83b9c681f23f44816f65fff478063867d2196
6
+ metadata.gz: 8288315e7245d48b1f2d7554121ea813226feb86b17a1d947ef34646f494678af1b8e983ce348ddf580b66e93b90e921c658d6b4a4dac5fe310d97c8781476a1
7
+ data.tar.gz: e7e33d37a9d51fa49711a10c10858caea4c6cf80546ee89e83c7b2665d7d18d03cddf44c0cc3eede34c2db60f5c081ce70a30822aaa22c8bceb814478c29cee0
@@ -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
@@ -1,3 +1,3 @@
1
1
  module OEHClient
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
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.3
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 00:00:00.000000000 Z
11
+ date: 2015-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler