class IDRAC::Client
def initialize(host:, username:, password:, port: 443, use_ssl: true, verify_ssl: false, direct_mode: false, retry_count: 3, retry_delay: 1, host_header: nil)
def initialize(host:, username:, password:, port: 443, use_ssl: true, verify_ssl: false, direct_mode: false, retry_count: 3, retry_delay: 1, host_header: nil) @host = host @username = username @password = password @port = port @use_ssl = use_ssl @verify_ssl = verify_ssl @direct_mode = direct_mode @host_header = host_header @verbosity = 0 @retry_count = retry_count @retry_delay = retry_delay # Initialize the session and web classes @session = Session.new(self) @web = Web.new(self) # Add finalizer to ensure sessions are cleaned up ObjectSpace.define_finalizer(self, self.class.finalizer(@session, @web)) end