class Pytty::Client::Api::Ps
Public Class Methods
run()
click to toggle source
# File lib/pytty/client/api/ps.rb, line 5 def self.run internet = Async::HTTP::Internet.new headers = [['accept', 'application/json']] body = {}.to_json response = internet.post("#{Pytty::Client.host_url}/v1/ps", headers, [body]) JSON.parse(response.body.read) ensure internet.close end