bstack_wrapper 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/user_account.rb +3 -3
- metadata +3 -3
data/lib/user_account.rb
CHANGED
@@ -42,9 +42,9 @@ class UserAccount
|
|
42
42
|
|
43
43
|
def get_worker_status options
|
44
44
|
required_params = %w(worker_id)
|
45
|
-
|
46
|
-
options.reject! { |o| !
|
47
|
-
|
45
|
+
optional_params = []
|
46
|
+
options.reject! { |o| !required_params.include?(o) && !optional_params.include?(o) }
|
47
|
+
required_params.each { |param| raise Exception, "Parameter #{param} is required." if !options.include?(param) }
|
48
48
|
uri = "http://api.browserstack.com/3/worker#{options["worker_id"]}"
|
49
49
|
response = get_from_browser_stack uri
|
50
50
|
return JSON.parse(response.body)
|
metadata
CHANGED