Class: Cas::Config
- Inherits:
-
Object
- Object
- Cas::Config
- Defined in:
- lib/cas/config.rb
Instance Method Summary collapse
-
#initialize(filename: nil) ⇒ Config
constructor
A new instance of Config.
- #uploads ⇒ Object
Constructor Details
#initialize(filename: nil) ⇒ Config
Returns a new instance of Config.
6 7 8 |
# File 'lib/cas/config.rb', line 6 def initialize(filename: nil) @filename = filename end |
Instance Method Details
#uploads ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/cas/config.rb', line 10 def uploads uploads = config["uploads"] || {} { cache_directory_prefix: uploads["cache_directory_prefix"] || "cache", store_directory_prefix: uploads["store_directory_prefix"] || "store" } end |