linodeapi 0.0.7 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linodeapi/raw.rb +2 -1
- data/linodeapi.gemspec +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: 20a479c17b644b53b3a30f2ab0bde78f208a927c
|
4
|
+
data.tar.gz: 50fe1be948698cb2799856bbab81962c61a8eaea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f917e9aa3306e452c8cde8d6a00a8af61e8533eec2bf4ad5b38bfdeb2b71c2c944f146b05431ea7a0affd66ef705ecc3317e9bd23601e2b0fe288548f176f971
|
7
|
+
data.tar.gz: d40d46c444681a38c52e71dd3f29ec801996e1fd235f700e4967e83d1d6fbd03b760c5404282077e0a22f54b1e2dabc2e4ff9d26a4cc26685352e868faff4b1b
|
data/lib/linodeapi/raw.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'httparty'
|
2
|
+
require 'ostruct'
|
2
3
|
|
3
4
|
##
|
4
5
|
# Raw API wrapper, dynamically loaded from the published spec
|
@@ -80,7 +81,7 @@ module LinodeAPI
|
|
80
81
|
end
|
81
82
|
|
82
83
|
def self.clean(object)
|
83
|
-
Hash[object.map { |k, v| [k.downcase.to_sym, v] }]
|
84
|
+
OpenStruct.new(Hash[object.map { |k, v| [k.downcase.to_sym, v] }])
|
84
85
|
end
|
85
86
|
|
86
87
|
def self.validate(method, spec, given)
|
data/linodeapi.gemspec
CHANGED