module QBittorrent::WebApi::App

Public Instance Methods

api_version() click to toggle source
# File lib/qbittorrent/web_api/app.rb, line 10
def api_version
  send_request('/app/webapiVersion') do |api_url|
    api_client.get(api_url)
  end
end
application_version() click to toggle source
# File lib/qbittorrent/web_api/app.rb, line 4
def application_version
  send_request('/app/version') do |api_url|
    api_client.get(api_url)
  end
end
build_info() click to toggle source
# File lib/qbittorrent/web_api/app.rb, line 16
def build_info
  send_request('/app/buildInfo') do |api_url|
    api_client.get(api_url)
  end
end
default_save_path() click to toggle source
# File lib/qbittorrent/web_api/app.rb, line 34
def default_save_path
  send_request('/app/defaultSavePath') do |api_url|
    api_client.get(api_url)
  end
end
preferences() click to toggle source
# File lib/qbittorrent/web_api/app.rb, line 22
def preferences
  send_request('/app/preferences') do |api_url|
    api_client.get(api_url)
  end
end
set_preferences(**options) click to toggle source
# File lib/qbittorrent/web_api/app.rb, line 28
def set_preferences(**options)
  send_request('/app/setPreferences') do |api_url|
    api_client.post(api_url, form: { json: options.to_json })
  end
end
shutdown() click to toggle source
# File lib/qbittorrent/web_api/app.rb, line 40
def shutdown
  send_request('/app/shutdown') do |api_url|
    api_client.post(api_url)
  end
end