Class: InfluxORM::Configuration
- Inherits:
-
Object
- Object
- InfluxORM::Configuration
- Defined in:
- lib/influx_orm/configuration.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #connection ⇒ Object
-
#initialize(options) ⇒ Configuration
constructor
A new instance of Configuration.
- #module ⇒ Object
Constructor Details
#initialize(options) ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 |
# File 'lib/influx_orm/configuration.rb', line 8 def initialize() @options = .deep_symbolize_keys end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
6 7 8 |
# File 'lib/influx_orm/configuration.rb', line 6 def logger @logger end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/influx_orm/configuration.rb', line 5 def @options end |
Instance Method Details
#connection ⇒ Object
12 13 14 |
# File 'lib/influx_orm/configuration.rb', line 12 def connection @connection ||= Connection.new(@options[:connection], self) end |
#module ⇒ Object
16 17 18 |
# File 'lib/influx_orm/configuration.rb', line 16 def module @module ||= InitModuleGenerator.new(self) end |