Class: Vigilant::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/vigilant-ruby.rb

Overview

Configuration for the Vigilant logging service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#endpointObject

Returns the value of attribute endpoint.



13
14
15
# File 'lib/vigilant-ruby.rb', line 13

def endpoint
  @endpoint
end

#insecureObject

Returns the value of attribute insecure.



13
14
15
# File 'lib/vigilant-ruby.rb', line 13

def insecure
  @insecure
end

#nameObject

Returns the value of attribute name.



13
14
15
# File 'lib/vigilant-ruby.rb', line 13

def name
  @name
end

#passthroughObject

Returns the value of attribute passthrough.



13
14
15
# File 'lib/vigilant-ruby.rb', line 13

def passthrough
  @passthrough
end

#tokenObject

Returns the value of attribute token.



13
14
15
# File 'lib/vigilant-ruby.rb', line 13

def token
  @token
end