Class: Versionable::Configuration
- Inherits:
-
Object
- Object
- Versionable::Configuration
- Defined in:
- lib/versionable/configuration.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ Configuration
constructor
A new instance of Configuration.
- #secret_key(value = nil) ⇒ Object
- #thumbor_server(value = nil) ⇒ Object
Constructor Details
#initialize(&block) ⇒ Configuration
Returns a new instance of Configuration.
3 4 5 |
# File 'lib/versionable/configuration.rb', line 3 def initialize(&block) instance_eval(&block) if block_given? end |
Instance Method Details
#secret_key(value = nil) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/versionable/configuration.rb', line 15 def secret_key(value = nil) if value @secret_key = value else @secret_key ||= 'S3CR37_K3Y' end end |
#thumbor_server(value = nil) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/versionable/configuration.rb', line 7 def thumbor_server(value = nil) if value @server = value else @server ||= 'thumbor_server.example.com' end end |