Class: Wazuh::Configuration::Config
- Inherits:
-
Object
- Object
- Wazuh::Configuration::Config
- Defined in:
- lib/wazuh/configuration.rb
Instance Attribute Summary collapse
-
#api_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
-
#ca_file ⇒ Object
Returns the value of attribute ca_file.
-
#client_cert ⇒ Object
Returns the value of attribute client_cert.
-
#client_key ⇒ Object
Returns the value of attribute client_key.
-
#http_accept ⇒ Object
Returns the value of attribute http_accept.
-
#params_encoder ⇒ Object
Returns the value of attribute params_encoder.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
-
#request ⇒ Object
Returns the value of attribute request.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
- #http_request_headers ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
Instance Attribute Details
#api_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
12 13 14 |
# File 'lib/wazuh/configuration.rb', line 12 def api_endpoint @api_endpoint end |
#ca_file ⇒ Object
Returns the value of attribute ca_file.
12 13 14 |
# File 'lib/wazuh/configuration.rb', line 12 def ca_file @ca_file end |
#client_cert ⇒ Object
Returns the value of attribute client_cert.
12 13 14 |
# File 'lib/wazuh/configuration.rb', line 12 def client_cert @client_cert end |
#client_key ⇒ Object
Returns the value of attribute client_key.
12 13 14 |
# File 'lib/wazuh/configuration.rb', line 12 def client_key @client_key end |
#http_accept ⇒ Object
Returns the value of attribute http_accept.
12 13 14 |
# File 'lib/wazuh/configuration.rb', line 12 def http_accept @http_accept end |
#params_encoder ⇒ Object
Returns the value of attribute params_encoder.
12 13 14 |
# File 'lib/wazuh/configuration.rb', line 12 def params_encoder @params_encoder end |
#proxy ⇒ Object
Returns the value of attribute proxy.
12 13 14 |
# File 'lib/wazuh/configuration.rb', line 12 def proxy @proxy end |
#request ⇒ Object
Returns the value of attribute request.
12 13 14 |
# File 'lib/wazuh/configuration.rb', line 12 def request @request end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
12 13 14 |
# File 'lib/wazuh/configuration.rb', line 12 def user_agent @user_agent end |
Instance Method Details
#http_request_headers ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/wazuh/configuration.rb', line 27 def http_request_headers headers = { 'Accept' => http_accept, 'User-Agent' => user_agent, } headers.select {|_, v| !!v} end |