Class: OPNsenseAPI::Core::Core::Menu

Inherits:
Object
  • Object
show all
Includes:
OPNsenseAPI::Core
Defined in:
lib/opnsense_api/core/core/menu.rb

Constant Summary collapse

BASE_PATH =
'/core/menu'

Instance Method Summary collapse

Methods included from OPNsenseAPI::Core

#initialize

Instance Method Details

#searchObject



26
27
28
# File 'lib/opnsense_api/core/core/menu.rb', line 26

def search
  @client.get(BASE_PATH)
end

#treeObject



30
31
32
# File 'lib/opnsense_api/core/core/menu.rb', line 30

def tree
  @client.get("#{BASE_PATH}/tree")
end