testcloud_devices_ruby 0.0.0.4 → 0.0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/testcloud/devices/client.rb +9 -1
- data/lib/testcloud/devices/ruby/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: 10adc55bb58e27978441a2ad206c02e13a1625a9
|
4
|
+
data.tar.gz: cbc209601c26cb52172f2d58c90f2ea65dd0abb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 127e358a92ef23983be3ace1f5dc6ddbcb94e3faee2b44056e4a0070587dfae7b05151c92f902c98d17a43cb231a54901cd2799653cf2ddf8121a48471a15fa1
|
7
|
+
data.tar.gz: 2a3d91794e6e9a4ac9a980e90151e0f8c538ff4fc35e20d27b9bc4f95c09caccc989823fb0ea9b218b0dbc5cc8841150ac83ee7029611e5995d8a8fbf2fc7cb7
|
@@ -23,12 +23,20 @@ module Testcloud
|
|
23
23
|
def api_token
|
24
24
|
@api_token
|
25
25
|
end
|
26
|
+
|
27
|
+
def url
|
28
|
+
@url
|
29
|
+
end
|
30
|
+
|
31
|
+
def url=(value)
|
32
|
+
@url = value
|
33
|
+
end
|
26
34
|
end
|
27
35
|
|
28
36
|
def initialize(options = {})
|
29
37
|
@type, @category = options[:type], options[:category]
|
30
38
|
self.class.debug_output if options[:debug]
|
31
|
-
self.class.base_uri(options[:url] || DEFAULT_URL)
|
39
|
+
self.class.base_uri(options[:url] || self.class.url || DEFAULT_URL)
|
32
40
|
self.class.api_token = options[:api_token] if options[:api_token]
|
33
41
|
end
|
34
42
|
|