Module: RedfishClient
- Defined in:
- lib/redfish_client.rb,
lib/redfish_client/root.rb,
lib/redfish_client/version.rb,
lib/redfish_client/nil_hash.rb,
lib/redfish_client/resource.rb,
lib/redfish_client/response.rb,
lib/redfish_client/connector.rb,
lib/redfish_client/event_listener.rb
Defined Under Namespace
Classes: Connector, EventListener, NilHash, Resource, Response, Root
Constant Summary collapse
- VERSION =
"0.6.0"
Class Method Summary collapse
-
.new(url, prefix: "/redfish/v1", verify: true, use_cache: true, use_session: true) ⇒ Object
Create new Redfish API client.
Class Method Details
.new(url, prefix: "/redfish/v1", verify: true, use_cache: true, use_session: true) ⇒ Object
Create new Redfish API client.
16 17 18 19 20 |
# File 'lib/redfish_client.rb', line 16 def self.new(url, prefix: "/redfish/v1", verify: true, use_cache: true, use_session: true) cache = (use_cache ? Hash : NilHash).new con = Connector.new(url, verify: verify, cache: cache, use_session: use_session) Root.new(con, oid: prefix) end |