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.



11
12
13
14
15
16
# File 'lib/logplex/configuration.rb', line 11

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.



5
6
7
# File 'lib/logplex/configuration.rb', line 5

def app_name
  @app_name
end

#hostObject

Returns the value of attribute host.



5
6
7
# File 'lib/logplex/configuration.rb', line 5

def host
  @host
end

#logplex_urlObject

Returns the value of attribute logplex_url.



5
6
7
# File 'lib/logplex/configuration.rb', line 5

def logplex_url
  @logplex_url
end

#processObject

Returns the value of attribute process.



5
6
7
# File 'lib/logplex/configuration.rb', line 5

def process
  @process
end

#publish_timeoutObject

Returns the value of attribute publish_timeout.



5
6
7
# File 'lib/logplex/configuration.rb', line 5

def publish_timeout
  @publish_timeout
end