bstack_wrapper 0.0.1 → 0.0.2
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.
- 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