Class: Wasval::Config
- Inherits:
-
Object
- Object
- Wasval::Config
- Defined in:
- lib/wasval/config.rb
Constant Summary collapse
- DEFAULT_TIMEOUT =
5- DEFAULT_MEMORY_LIMIT =
128
Instance Attribute Summary collapse
-
#memory_limit ⇒ Object
Returns the value of attribute memory_limit.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
10 11 12 13 |
# File 'lib/wasval/config.rb', line 10 def initialize @timeout = DEFAULT_TIMEOUT @memory_limit = DEFAULT_MEMORY_LIMIT end |
Instance Attribute Details
#memory_limit ⇒ Object
Returns the value of attribute memory_limit.
8 9 10 |
# File 'lib/wasval/config.rb', line 8 def memory_limit @memory_limit end |
#timeout ⇒ Object
Returns the value of attribute timeout.
8 9 10 |
# File 'lib/wasval/config.rb', line 8 def timeout @timeout end |