Class: Logplex::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/logplex/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



9
10
11
12
13
14
# File 'lib/logplex/configuration.rb', line 9

def initialize
  @logplex_url     = 'https://east.logplex.io/logs'
  @host            = 'localhost'
  @publish_timeout = 1
  @app_name        = 'app'
end

Instance Attribute Details

#app_nameObject

Returns the value of attribute app_name.



3
4
5
# File 'lib/logplex/configuration.rb', line 3

def app_name
  @app_name
end

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/logplex/configuration.rb', line 3

def host
  @host
end

#logplex_urlObject

Returns the value of attribute logplex_url.



3
4
5
# File 'lib/logplex/configuration.rb', line 3

def logplex_url
  @logplex_url
end

#processObject

Returns the value of attribute process.



3
4
5
# File 'lib/logplex/configuration.rb', line 3

def process
  @process
end

#publish_timeoutObject

Returns the value of attribute publish_timeout.



3
4
5
# File 'lib/logplex/configuration.rb', line 3

def publish_timeout
  @publish_timeout
end