Class: WkhtmltopdfRunner::Configuration
- Inherits:
-
Object
- Object
- WkhtmltopdfRunner::Configuration
- Defined in:
- lib/wkhtmltopdf_runner/configuration.rb
Instance Attribute Summary collapse
-
#binary_path ⇒ Object
Returns the value of attribute binary_path.
- #debug ⇒ Object
- #logger ⇒ Object
- #options ⇒ Object
Instance Attribute Details
#binary_path ⇒ Object
Returns the value of attribute binary_path.
8 9 10 |
# File 'lib/wkhtmltopdf_runner/configuration.rb', line 8 def binary_path @binary_path end |
#debug ⇒ Object
21 22 23 24 25 26 |
# File 'lib/wkhtmltopdf_runner/configuration.rb', line 21 def debug return @debug if defined?(@debug) return true if defined?(Rails) && Rails.env.development? false end |
#logger ⇒ Object
10 11 12 13 14 15 |
# File 'lib/wkhtmltopdf_runner/configuration.rb', line 10 def logger return @logger if defined?(@logger) return Rails.logger if defined?(Rails) Logger.new($stdout) end |
#options ⇒ Object
17 18 19 |
# File 'lib/wkhtmltopdf_runner/configuration.rb', line 17 def || {} end |