Class: WSDirector::Configuration
- Inherits:
-
Object
- Object
- WSDirector::Configuration
- Defined in:
- lib/wsdirector/configuration.rb
Overview
WSDirector configuration
Instance Attribute Summary collapse
-
#colorize ⇒ Object
Returns the value of attribute colorize.
-
#scale ⇒ Object
Returns the value of attribute scale.
-
#scenario_path ⇒ Object
Returns the value of attribute scenario_path.
-
#sync_timeout ⇒ Object
Returns the value of attribute sync_timeout.
-
#ws_url ⇒ Object
Returns the value of attribute ws_url.
Instance Method Summary collapse
- #colorize? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
-
#reset! ⇒ Object
Restore to defaults.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 |
# File 'lib/wsdirector/configuration.rb', line 9 def initialize reset! end |
Instance Attribute Details
#colorize ⇒ Object
Returns the value of attribute colorize.
6 7 8 |
# File 'lib/wsdirector/configuration.rb', line 6 def colorize @colorize end |
#scale ⇒ Object
Returns the value of attribute scale.
6 7 8 |
# File 'lib/wsdirector/configuration.rb', line 6 def scale @scale end |
#scenario_path ⇒ Object
Returns the value of attribute scenario_path.
6 7 8 |
# File 'lib/wsdirector/configuration.rb', line 6 def scenario_path @scenario_path end |
#sync_timeout ⇒ Object
Returns the value of attribute sync_timeout.
6 7 8 |
# File 'lib/wsdirector/configuration.rb', line 6 def sync_timeout @sync_timeout end |
#ws_url ⇒ Object
Returns the value of attribute ws_url.
6 7 8 |
# File 'lib/wsdirector/configuration.rb', line 6 def ws_url @ws_url end |
Instance Method Details
#colorize? ⇒ Boolean
13 14 15 |
# File 'lib/wsdirector/configuration.rb', line 13 def colorize? colorize == true end |
#reset! ⇒ Object
Restore to defaults
18 19 20 21 22 |
# File 'lib/wsdirector/configuration.rb', line 18 def reset! @scale = 1 @colorize = false @sync_timeout = 5 end |