dynect_rest 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dynect_rest/gslb.rb +7 -3
- data/lib/dynect_rest/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: ccada5b663065910ecdc89731264deea71e8917e
|
4
|
+
data.tar.gz: 67ab32917e401ce15b4704131b67f23dd7114f12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33598b866e39e8f77a3ba2902b58748259abff081b5f75b1125d8a630b086b4d44cd2a029486cc7440b4ffedf42d5edfed52f0dba13f2af7aaff7ca6a7a3c579
|
7
|
+
data.tar.gz: 54fb58ac8c8c86f2705379b774af0cd7e64440146ee5dd7e2fc5d6928d8c3cef699031d101fb3f7245852dfdcacbb2cccda2897b4f5bfefba93d2a9e45bd3e3e
|
data/lib/dynect_rest/gslb.rb
CHANGED
@@ -153,9 +153,9 @@ class DynectRest
|
|
153
153
|
end
|
154
154
|
end
|
155
155
|
|
156
|
-
def
|
156
|
+
def to_hash
|
157
157
|
{
|
158
|
-
"ttl"
|
158
|
+
"ttl" => @ttl,
|
159
159
|
"monitor" => @monitor,
|
160
160
|
"region" => {
|
161
161
|
"region_code" => @region_code,
|
@@ -164,7 +164,11 @@ class DynectRest
|
|
164
164
|
"pool" => @host_list.values
|
165
165
|
},
|
166
166
|
"contact_nickname" => @contact_nick
|
167
|
-
}
|
167
|
+
}
|
168
|
+
end
|
169
|
+
|
170
|
+
def to_json
|
171
|
+
to_hash.to_json
|
168
172
|
end
|
169
173
|
end
|
170
174
|
end
|
data/lib/dynect_rest/version.rb
CHANGED