Class: Libera::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/libera.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#densityObject

Returns the value of attribute density.



50
51
52
# File 'lib/libera.rb', line 50

def density
  @density
end

#format_typeObject

Returns the value of attribute format_type.



52
53
54
# File 'lib/libera.rb', line 52

def format_type
  @format_type
end

#pdf_locationObject

Example:

Libera.configuration.example = "..."

attr_accessor :example_value



48
49
50
# File 'lib/libera.rb', line 48

def pdf_location
  @pdf_location
end

#qualityObject

Returns the value of attribute quality.



51
52
53
# File 'lib/libera.rb', line 51

def quality
  @quality
end

#working_dirObject

Returns the value of attribute working_dir.



49
50
51
# File 'lib/libera.rb', line 49

def working_dir
  @working_dir
end