Class: Yabbie::Configuration
- Inherits:
-
Object
- Object
- Yabbie::Configuration
- Defined in:
- lib/yabbie/configuration.rb
Instance Attribute Summary collapse
-
#default_options ⇒ Object
Returns the value of attribute default_options.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/yabbie/configuration.rb', line 13 def initialize @default_options = { format: 'png', tmpdir: Dir.tmpdir, timeout: 120000, config_file: File.('../config.json', __FILE__), width: 600, height: 600, error_log_file: Dir.tmpdir + "/log/yabbie_error.log", prepend_command: '', script: File.('../default.js', __FILE__), slimerjs: `which slimerjs`.chomp } end |
Instance Attribute Details
#default_options ⇒ Object
Returns the value of attribute default_options.
5 6 7 |
# File 'lib/yabbie/configuration.rb', line 5 def @default_options end |