Module: WdaClient::Homescreen

Included in:
WdaClient
Defined in:
lib/wda_client/homescreen.rb

Instance Method Summary collapse

Instance Method Details

#homescreenObject



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

def homescreen
  uri = generate_uri(url_path: '/homescreen')
  req = generate_base_req(method: 'post', url_path: '/homescreen')
  req.body = ""

  res = Net::HTTP.start(uri.host, uri.port) { |http| http.request(req) }

  JSON.parse(res.body)
end