Class: BrowserStack::Browser

Inherits:
ApiRequest show all
Defined in:
lib/browser_stack/browser.rb

Instance Attribute Summary

Attributes inherited from ApiRequest

#config, #http_client, #params, #request, #response, #uri

Class Method Summary collapse

Methods inherited from ApiRequest

#api_error?, #authenticate, #commit, #error_message, #get_http_client, #parse_response, #set_uri

Class Method Details

.get_browsers(flat = nil) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/browser_stack/browser.rb', line 5

def get_browsers(flat=nil)
  request  = new()
  if flat.nil?
    request.commit("/browsers")
  else
    request.commit("/browsers?flat=#{flat}")
  end
  request
end