Class: RedfishTools::Server
- Inherits:
-
WEBrick::HTTPServer
- Object
- WEBrick::HTTPServer
- RedfishTools::Server
- Defined in:
- lib/redfish_tools/server.rb
Instance Method Summary collapse
-
#initialize(datastore, config = {}) ⇒ Server
constructor
A new instance of Server.
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) login_path = root.dig("Links", "Sessions", "@odata.id") mount("/", Servlet, datastore, login_path) end |