Module: RedfishClient
- Defined in:
- lib/redfish_client.rb,
lib/redfish_client/root.rb,
lib/redfish_client/version.rb,
lib/redfish_client/resource.rb,
lib/redfish_client/connector.rb,
lib/redfish_client/event_listener.rb,
lib/redfish_client/caching_connector.rb
Defined Under Namespace
Classes: CachingConnector, Connector, EventListener, Resource, Root
Constant Summary collapse
- VERSION =
"0.4.1"
Class Method Summary collapse
-
.new(url, prefix: "/redfish/v1", verify: true, use_cache: true) ⇒ Object
Create new Redfish API client.
Class Method Details
.new(url, prefix: "/redfish/v1", verify: true, use_cache: true) ⇒ Object
Create new Redfish API client.
15 16 17 18 19 20 21 22 |
# File 'lib/redfish_client.rb', line 15 def self.new(url, prefix: "/redfish/v1", verify: true, use_cache: true) con = if use_cache CachingConnector.new(url, verify) else Connector.new(url, verify) end Root.new(con, oid: prefix) end |