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