Class: RedfishTools::Server

Inherits:
WEBrick::HTTPServer
  • Object
show all
Defined in:
lib/redfish_tools/server.rb

Instance Method Summary collapse

Constructor Details

#initialize(datastore, config = {}) ⇒ Server

Returns a new instance of Server.



11
12
13
14
15
16
17
# File 'lib/redfish_tools/server.rb', line 11

def initialize(datastore, config = {})
  super(config)

  root = JSON.parse(datastore.get("/redfish/v1").body)
   = root.dig("Links", "Sessions", "@odata.id")
  mount("/", Servlet, datastore, )
end