Class: Pytty::Client::Api::Ps
- Inherits:
-
Object
- Object
- Pytty::Client::Api::Ps
- Defined in:
- lib/pytty/client/api/ps.rb
Class Method Summary collapse
Class Method Details
.run ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# 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 |