Sha256: ad429887f1e40f111167e4f77204f744cf9e693f33697ffef0c009e5f1853546
Contents?: true
Size: 700 Bytes
Versions: 3
Compression:
Stored size: 700 Bytes
Contents
# frozen_string_literal: true require "redfish_client/caching_connector" require "redfish_client/connector" require "redfish_client/root" require "redfish_client/version" module RedfishClient # 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 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
redfish_client-0.4.1 | lib/redfish_client.rb |
redfish_client-0.4.0 | lib/redfish_client.rb |
redfish_client-0.3.0 | lib/redfish_client.rb |