lib/redfish_client.rb in redfish_client-0.5.4 vs lib/redfish_client.rb in redfish_client-0.6.0

- old
+ new

@@ -9,12 +9,13 @@ # 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_session [Boolean] Use a session for authentication # @param use_cache [Boolean] cache API responses - def self.new(url, prefix: "/redfish/v1", verify: true, use_cache: true) + 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) + con = Connector.new(url, verify: verify, cache: cache, use_session: use_session) Root.new(con, oid: prefix) end end