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.
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_name ⇒ Object
Returns the value of attribute app_name.
5 6 7 |
# File 'lib/logplex/configuration.rb', line 5 def app_name @app_name end |
#host ⇒ Object
Returns the value of attribute host.
5 6 7 |
# File 'lib/logplex/configuration.rb', line 5 def host @host end |
#logplex_url ⇒ Object
Returns the value of attribute logplex_url.
5 6 7 |
# File 'lib/logplex/configuration.rb', line 5 def logplex_url @logplex_url end |
#process ⇒ Object
Returns the value of attribute process.
5 6 7 |
# File 'lib/logplex/configuration.rb', line 5 def process @process end |
#publish_timeout ⇒ Object
Returns the value of attribute publish_timeout.
5 6 7 |
# File 'lib/logplex/configuration.rb', line 5 def publish_timeout @publish_timeout end |