Sha256: 04f9ef5023dbc893fdeab3607aee8abc495274fd157862c4caad47b90958f882
Contents?: true
Size: 699 Bytes
Versions: 5
Compression:
Stored size: 699 Bytes
Contents
module Wazuh class Client include Sawyer::Connection include Sawyer::Request attr_accessor(*Config::ATTRIBUTES) def initialize(options = {}) Wazuh::Config::ATTRIBUTES.each do |key| send("#{key}=", options[key] || Wazuh.config.send(key)) end @logger ||= Wazuh::Config.logger || Wazuh::Logger.default case api_version when 3 extend Api::Endpoints when 4 extend Api::Endpoints::V4 else raise "unsupported api version #{api_version}" end end class << self def configure block_given? ? yield(Config) : Config end def config Config end end end end
Version data entries
5 entries across 5 versions & 1 rubygems