Module: RedCross::Configuration

Defined in:
lib/red_cross/configuration.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.applicationObject

Returns the value of attribute application.



4
5
6
# File 'lib/red_cross/configuration.rb', line 4

def application
  @application
end

.default_trackerObject

Returns the value of attribute default_tracker.



4
5
6
# File 'lib/red_cross/configuration.rb', line 4

def default_tracker
  @default_tracker
end

.influxdbObject

Returns the value of attribute influxdb.



4
5
6
# File 'lib/red_cross/configuration.rb', line 4

def influxdb
  @influxdb
end

.influxdb_connectObject

Returns the value of attribute influxdb_connect.



4
5
6
# File 'lib/red_cross/configuration.rb', line 4

def influxdb_connect
  @influxdb_connect
end

.loggerObject

Returns the value of attribute logger.



4
5
6
# File 'lib/red_cross/configuration.rb', line 4

def logger
  @logger
end

.trackerObject

Returns the value of attribute tracker.



4
5
6
# File 'lib/red_cross/configuration.rb', line 4

def tracker
  @tracker
end

.trackersObject

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

Yields:

  • (_self)

Yield Parameters:



6
7
8
9
# File 'lib/red_cross/configuration.rb', line 6

def configure
  yield self
  @tracker = trackers[@default_tracker]
end