Class: Libera::Configuration
- Inherits:
-
Object
- Object
- Libera::Configuration
- Defined in:
- lib/libera.rb
Instance Attribute Summary collapse
-
#density ⇒ Object
Returns the value of attribute density.
-
#format_type ⇒ Object
Returns the value of attribute format_type.
-
#pdf_location ⇒ Object
Example: Libera.configuration.example = “…” attr_accessor :example_value.
-
#quality ⇒ Object
Returns the value of attribute quality.
-
#working_dir ⇒ Object
Returns the value of attribute working_dir.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Default configuration values.
Constructor Details
#initialize ⇒ Configuration
Default configuration values
55 56 57 58 59 60 |
# File 'lib/libera.rb', line 55 def initialize @working_dir = "libera-#{Time.now.to_f.to_s.gsub!('.','')}" # Default value @density = 300 # Default value @quality = 100 # Default value @format_type = "png" # Default value end |
Instance Attribute Details
#density ⇒ Object
Returns the value of attribute density.
50 51 52 |
# File 'lib/libera.rb', line 50 def density @density end |
#format_type ⇒ Object
Returns the value of attribute format_type.
52 53 54 |
# File 'lib/libera.rb', line 52 def format_type @format_type end |
#pdf_location ⇒ Object
48 49 50 |
# File 'lib/libera.rb', line 48 def pdf_location @pdf_location end |
#quality ⇒ Object
Returns the value of attribute quality.
51 52 53 |
# File 'lib/libera.rb', line 51 def quality @quality end |
#working_dir ⇒ Object
Returns the value of attribute working_dir.
49 50 51 |
# File 'lib/libera.rb', line 49 def working_dir @working_dir end |