Class: SecureNative::Config::ConfigurationBuilder
- Inherits:
-
Object
- Object
- SecureNative::Config::ConfigurationBuilder
- Defined in:
- lib/securenative/config/configuration_builder.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#auto_send ⇒ Object
Returns the value of attribute auto_send.
-
#disable ⇒ Object
Returns the value of attribute disable.
-
#fail_over_strategy ⇒ Object
Returns the value of attribute fail_over_strategy.
-
#interval ⇒ Object
Returns the value of attribute interval.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#max_events ⇒ Object
Returns the value of attribute max_events.
-
#proxy_headers ⇒ Object
Returns the value of attribute proxy_headers.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Class Method Summary collapse
Instance Method Summary collapse
-
#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) ⇒ ConfigurationBuilder
constructor
A new instance of ConfigurationBuilder.
Constructor Details
#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) ⇒ ConfigurationBuilder
Returns a new instance of ConfigurationBuilder.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/securenative/config/configuration_builder.rb', line 9 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 |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
6 7 8 |
# File 'lib/securenative/config/configuration_builder.rb', line 6 def api_key @api_key end |
#api_url ⇒ Object
Returns the value of attribute api_url.
6 7 8 |
# File 'lib/securenative/config/configuration_builder.rb', line 6 def api_url @api_url end |
#auto_send ⇒ Object
Returns the value of attribute auto_send.
6 7 8 |
# File 'lib/securenative/config/configuration_builder.rb', line 6 def auto_send @auto_send end |
#disable ⇒ Object
Returns the value of attribute disable.
6 7 8 |
# File 'lib/securenative/config/configuration_builder.rb', line 6 def disable @disable end |
#fail_over_strategy ⇒ Object
Returns the value of attribute fail_over_strategy.
6 7 8 |
# File 'lib/securenative/config/configuration_builder.rb', line 6 def fail_over_strategy @fail_over_strategy end |
#interval ⇒ Object
Returns the value of attribute interval.
6 7 8 |
# File 'lib/securenative/config/configuration_builder.rb', line 6 def interval @interval end |
#log_level ⇒ Object
Returns the value of attribute log_level.
6 7 8 |
# File 'lib/securenative/config/configuration_builder.rb', line 6 def log_level @log_level end |
#max_events ⇒ Object
Returns the value of attribute max_events.
6 7 8 |
# File 'lib/securenative/config/configuration_builder.rb', line 6 def max_events @max_events end |
#proxy_headers ⇒ Object
Returns the value of attribute proxy_headers.
6 7 8 |
# File 'lib/securenative/config/configuration_builder.rb', line 6 def proxy_headers @proxy_headers end |
#timeout ⇒ Object
Returns the value of attribute timeout.
6 7 8 |
# File 'lib/securenative/config/configuration_builder.rb', line 6 def timeout @timeout end |