Class: DoSnapshot::Configuration
- Inherits:
-
Object
- Object
- DoSnapshot::Configuration
- Defined in:
- lib/do_snapshot/configuration.rb
Overview
Configuration class. Used to share config across application.
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#logger_level ⇒ Object
Returns the value of attribute logger_level.
-
#mailer ⇒ Object
Returns the value of attribute mailer.
-
#quiet ⇒ Object
Returns the value of attribute quiet.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 18 |
# File 'lib/do_snapshot/configuration.rb', line 12 def initialize @logger = nil @logger_level = Logger::INFO @verbose = false @quiet = false @mailer = nil end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
6 7 8 |
# File 'lib/do_snapshot/configuration.rb', line 6 def logger @logger end |
#logger_level ⇒ Object
Returns the value of attribute logger_level.
7 8 9 |
# File 'lib/do_snapshot/configuration.rb', line 7 def logger_level @logger_level end |
#mailer ⇒ Object
Returns the value of attribute mailer.
10 11 12 |
# File 'lib/do_snapshot/configuration.rb', line 10 def mailer @mailer end |
#quiet ⇒ Object
Returns the value of attribute quiet.
9 10 11 |
# File 'lib/do_snapshot/configuration.rb', line 9 def quiet @quiet end |
#verbose ⇒ Object
Returns the value of attribute verbose.
8 9 10 |
# File 'lib/do_snapshot/configuration.rb', line 8 def verbose @verbose end |