Module: RedCross::Configuration
- Defined in:
- lib/red_cross/configuration.rb
Class Attribute Summary collapse
-
.application ⇒ Object
Returns the value of attribute application.
-
.default_tracker ⇒ Object
Returns the value of attribute default_tracker.
-
.influxdb ⇒ Object
Returns the value of attribute influxdb.
-
.influxdb_connect ⇒ Object
Returns the value of attribute influxdb_connect.
-
.logger ⇒ Object
Returns the value of attribute logger.
-
.tracker ⇒ Object
Returns the value of attribute tracker.
-
.trackers ⇒ Object
Returns the value of attribute trackers.
Class Method Summary collapse
Class Attribute Details
.application ⇒ Object
Returns the value of attribute application.
4 5 6 |
# File 'lib/red_cross/configuration.rb', line 4 def application @application end |
.default_tracker ⇒ Object
Returns the value of attribute default_tracker.
4 5 6 |
# File 'lib/red_cross/configuration.rb', line 4 def default_tracker @default_tracker end |
.influxdb ⇒ Object
Returns the value of attribute influxdb.
4 5 6 |
# File 'lib/red_cross/configuration.rb', line 4 def influxdb @influxdb end |
.influxdb_connect ⇒ Object
Returns the value of attribute influxdb_connect.
4 5 6 |
# File 'lib/red_cross/configuration.rb', line 4 def influxdb_connect @influxdb_connect end |
.logger ⇒ Object
Returns the value of attribute logger.
4 5 6 |
# File 'lib/red_cross/configuration.rb', line 4 def logger @logger end |
.tracker ⇒ Object
Returns the value of attribute tracker.
4 5 6 |
# File 'lib/red_cross/configuration.rb', line 4 def tracker @tracker end |
.trackers ⇒ Object
Returns the value of attribute trackers.
4 5 6 |
# File 'lib/red_cross/configuration.rb', line 4 def trackers @trackers end |
Class Method Details
.configure {|_self| ... } ⇒ Object
6 7 8 9 |
# File 'lib/red_cross/configuration.rb', line 6 def configure yield self @tracker = trackers[@default_tracker] end |