Sha256: e430982616a3fe80b462fc36e168d0b45d1bda4f314ee83a6c5f50f5b40c9dcf
Contents?: true
Size: 698 Bytes
Versions: 3
Compression:
Stored size: 698 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wazuh-ruby-client-0.3.7 | lib/wazuh/client.rb |
wazuh-ruby-client-0.3.6 | lib/wazuh/client.rb |
wazuh-ruby-client-0.3.5 | lib/wazuh/client.rb |