Class: Memosig::App
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(config: nil) ⇒ App
constructor
A new instance of App.
- #run ⇒ Object
Methods included from Output
#error, #output, #process_prefix
Constructor Details
#initialize(config: nil) ⇒ App
Returns a new instance of App.
9 10 11 |
# File 'lib/memosig/app.rb', line 9 def initialize(config: nil) @config = ComplexConfig::Provider.config(config) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
13 14 15 |
# File 'lib/memosig/app.rb', line 13 def config @config end |
Instance Method Details
#run ⇒ Object
15 16 17 18 |
# File 'lib/memosig/app.rb', line 15 def run check_memory sleep (@config.wait_period? || 300) end |