module RedfishClient
Constants
- VERSION
Public Class Methods
new(url, prefix: "/redfish/v1", verify: true, use_cache: true)
click to toggle source
Create new Redfish API client.
@param url [String] base URL of Redfish API @param prefix [String] Redfish API prefix @param verify [Boolean] verify certificates for https connections @param use_cache [Boolean] cache API responses
# File lib/redfish_client.rb, line 15 def self.new(url, prefix: "/redfish/v1", verify: true, use_cache: true) cache = (use_cache ? Hash : NilHash).new con = Connector.new(url, verify: verify, cache: cache) Root.new(con, oid: prefix) end