Class: SecureNative::SecureNativeOptions
- Inherits:
-
Object
- Object
- SecureNative::SecureNativeOptions
- Defined in:
- lib/securenative/config/securenative_options.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.
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: FailOverStrategy::FAIL_OPEN, proxy_headers: nil) ⇒ SecureNativeOptions
constructor
A new instance of SecureNativeOptions.
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: FailOverStrategy::FAIL_OPEN, proxy_headers: nil) ⇒ SecureNativeOptions
Returns a new instance of SecureNativeOptions.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/securenative/config/securenative_options.rb', line 10 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: 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.
7 8 9 |
# File 'lib/securenative/config/securenative_options.rb', line 7 def api_key @api_key end |
#api_url ⇒ Object
Returns the value of attribute api_url.
7 8 9 |
# File 'lib/securenative/config/securenative_options.rb', line 7 def api_url @api_url end |
#auto_send ⇒ Object
Returns the value of attribute auto_send.
7 8 9 |
# File 'lib/securenative/config/securenative_options.rb', line 7 def auto_send @auto_send end |
#disable ⇒ Object
Returns the value of attribute disable.
7 8 9 |
# File 'lib/securenative/config/securenative_options.rb', line 7 def disable @disable end |
#fail_over_strategy ⇒ Object
Returns the value of attribute fail_over_strategy.
7 8 9 |
# File 'lib/securenative/config/securenative_options.rb', line 7 def fail_over_strategy @fail_over_strategy end |
#interval ⇒ Object
Returns the value of attribute interval.
7 8 9 |
# File 'lib/securenative/config/securenative_options.rb', line 7 def interval @interval end |
#log_level ⇒ Object
Returns the value of attribute log_level.
7 8 9 |
# File 'lib/securenative/config/securenative_options.rb', line 7 def log_level @log_level end |
#max_events ⇒ Object
Returns the value of attribute max_events.
7 8 9 |
# File 'lib/securenative/config/securenative_options.rb', line 7 def max_events @max_events end |
#proxy_headers ⇒ Object
Returns the value of attribute proxy_headers.
7 8 9 |
# File 'lib/securenative/config/securenative_options.rb', line 7 def proxy_headers @proxy_headers end |
#timeout ⇒ Object
Returns the value of attribute timeout.
7 8 9 |
# File 'lib/securenative/config/securenative_options.rb', line 7 def timeout @timeout end |