Class: Logplex::Configuration
- Inherits:
-
Object
- Object
- Logplex::Configuration
- Defined in:
- lib/logplex/configuration.rb
Instance Attribute Summary collapse
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#host ⇒ Object
Returns the value of attribute host.
-
#logplex_url ⇒ Object
Returns the value of attribute logplex_url.
-
#process ⇒ Object
Returns the value of attribute process.
-
#publish_timeout ⇒ Object
Returns the value of attribute publish_timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_name ⇒ Object
Returns the value of attribute app_name.
3 4 5 |
# File 'lib/logplex/configuration.rb', line 3 def app_name @app_name end |
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/logplex/configuration.rb', line 3 def host @host end |
#logplex_url ⇒ Object
Returns the value of attribute logplex_url.
3 4 5 |
# File 'lib/logplex/configuration.rb', line 3 def logplex_url @logplex_url end |
#process ⇒ Object
Returns the value of attribute process.
3 4 5 |
# File 'lib/logplex/configuration.rb', line 3 def process @process end |
#publish_timeout ⇒ Object
Returns the value of attribute publish_timeout.
3 4 5 |
# File 'lib/logplex/configuration.rb', line 3 def publish_timeout @publish_timeout end |