Sha256: 577a308cf54aae8be296e207d469d65f37676ec1ffe9bf3468306b9b2a1897c7
Contents?: true
Size: 1.1 KB
Versions: 11
Compression:
Stored size: 1.1 KB
Contents
# frozen_string_literal: true module SecureNative module Config class ConfigurationBuilder attr_reader :api_key, :api_url, :interval, :max_events, :timeout, :auto_send, :disable, :log_level, :fail_over_strategy, :proxy_headers attr_writer :api_key, :api_url, :interval, :max_events, :timeout, :auto_send, :disable, :log_level, :fail_over_strategy, :proxy_headers def initialize(api_key: nil, api_url: 'https://api.securenative.com/collector/api/v1', interval: 1000, max_events: 1000, timeout: 1500, auto_send: true, disable: false, log_level: 'FATAL', fail_over_strategy: SecureNative::FailOverStrategy::FAIL_OPEN, proxy_headers: nil) @api_key = api_key @api_url = api_url @interval = interval @max_events = max_events @timeout = timeout @auto_send = auto_send @disable = disable @log_level = log_level @fail_over_strategy = fail_over_strategy @proxy_headers = proxy_headers end def self.default_securenative_options Options.new end end end end
Version data entries
11 entries across 11 versions & 1 rubygems