Class: ServerStatus::Commands::BaseCommand
- Inherits:
-
Object
- Object
- ServerStatus::Commands::BaseCommand
- Defined in:
- lib/server-status/commands/base.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(config) ⇒ BaseCommand
constructor
A new instance of BaseCommand.
- #settings ⇒ Object
Constructor Details
#initialize(config) ⇒ BaseCommand
Returns a new instance of BaseCommand.
7 8 9 |
# File 'lib/server-status/commands/base.rb', line 7 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
4 5 6 |
# File 'lib/server-status/commands/base.rb', line 4 def config @config end |
Instance Method Details
#settings ⇒ Object
11 12 13 |
# File 'lib/server-status/commands/base.rb', line 11 def settings config.settings end |