class Pytty::Client::Api::Rm

Public Class Methods

run(id:) click to toggle source
# File lib/pytty/client/api/rm.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/rm/#{id}", headers, [body])
  [response, JSON.parse(response.body.read)]
ensure
  internet.close
end