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