Sha256: 0193040142ab3606bd2a77552c09499cfd29e135095cea4e1fc1f17516c78d96

Contents?: true

Size: 769 Bytes

Versions: 1

Compression:

Stored size: 769 Bytes

Contents

# frozen_string_literal: true

require "redfish_client/connector"
require "redfish_client/nil_hash"
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_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, 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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redfish_client-0.6.0 lib/redfish_client.rb