Class: WaitFor::Settings::Configuration
- Inherits:
-
Object
- Object
- WaitFor::Settings::Configuration
- Defined in:
- lib/waitfor/settings/configuration.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#message ⇒ Object
Returns the value of attribute message.
-
#seconds ⇒ Object
Returns the value of attribute seconds.
Instance Method Summary collapse
-
#initialize(options) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(options) ⇒ Configuration
A new instance of Configuration.
11 12 13 14 15 16 |
# File 'lib/waitfor/settings/configuration.rb', line 11 def initialize( ) # Initialize seconds to zero, so that from there we can add seconds to it. @seconds = 0 # Determine which parser should be used, then call it, passing ourselves in for assignment of the parsed values. parser_factory( ).parse( , self ) end |
Instance Attribute Details
#exception ⇒ Object
Returns the value of attribute exception.
6 7 8 |
# File 'lib/waitfor/settings/configuration.rb', line 6 def exception @exception end |
#message ⇒ Object
Returns the value of attribute message.
6 7 8 |
# File 'lib/waitfor/settings/configuration.rb', line 6 def @message end |
#seconds ⇒ Object
Returns the value of attribute seconds.
6 7 8 |
# File 'lib/waitfor/settings/configuration.rb', line 6 def seconds @seconds end |