Class: OPNsenseAPI::Core::Diagnostics::DNSDiagnostics
- Inherits:
-
Object
- Object
- OPNsenseAPI::Core::Diagnostics::DNSDiagnostics
- Includes:
- OPNsenseAPI::Core
- Defined in:
- lib/opnsense_api/core/diagnostics/dns_diagnostics.rb
Constant Summary collapse
- BASE_PATH =
'/diagnostics/dns_diagnostics'
Instance Method Summary collapse
Methods included from OPNsenseAPI::Core
Instance Method Details
#get(params = {}) ⇒ Object
26 27 28 |
# File 'lib/opnsense_api/core/diagnostics/dns_diagnostics.rb', line 26 def get(params = {}) @client.get("#{BASE_PATH}/get", params) end |
#set(params: {}, body: {}) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/opnsense_api/core/diagnostics/dns_diagnostics.rb', line 30 def set(params: {}, body: {}) if params @client.get("#{BASE_PATH}/set", params) else @client.post("#{BASE_PATH}/set", body) end end |