Class: Vigilant::Configuration
- Inherits:
-
Object
- Object
- Vigilant::Configuration
- Defined in:
- lib/vigilant-ruby.rb
Overview
Configuration for the Vigilant logging service.
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#insecure ⇒ Object
Returns the value of attribute insecure.
-
#name ⇒ Object
Returns the value of attribute name.
-
#passthrough ⇒ Object
Returns the value of attribute passthrough.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 19 20 21 |
# File 'lib/vigilant-ruby.rb', line 15 def initialize @name = 'test-app' @token = 'tk_1234567890' @endpoint = 'ingress.vigilant.run' @insecure = false @passthrough = false end |
Instance Attribute Details
#endpoint ⇒ Object
Returns the value of attribute endpoint.
13 14 15 |
# File 'lib/vigilant-ruby.rb', line 13 def endpoint @endpoint end |
#insecure ⇒ Object
Returns the value of attribute insecure.
13 14 15 |
# File 'lib/vigilant-ruby.rb', line 13 def insecure @insecure end |
#name ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/vigilant-ruby.rb', line 13 def name @name end |
#passthrough ⇒ Object
Returns the value of attribute passthrough.
13 14 15 |
# File 'lib/vigilant-ruby.rb', line 13 def passthrough @passthrough end |
#token ⇒ Object
Returns the value of attribute token.
13 14 15 |
# File 'lib/vigilant-ruby.rb', line 13 def token @token end |