Class: Scimitar::EngineConfiguration
- Inherits:
-
Object
- Object
- Scimitar::EngineConfiguration
- Includes:
- ActiveModel::Model
- Defined in:
- app/models/scimitar/engine_configuration.rb
Overview
Scimitar general configuration.
See config/initializers/scimitar.rb for more information.
Instance Attribute Summary collapse
-
#application_controller_mixin ⇒ Object
Returns the value of attribute application_controller_mixin.
-
#basic_authenticator ⇒ Object
Returns the value of attribute basic_authenticator.
-
#exception_reporter ⇒ Object
Returns the value of attribute exception_reporter.
-
#token_authenticator ⇒ Object
Returns the value of attribute token_authenticator.
-
#uses_defaults ⇒ Object
Returns the value of attribute uses_defaults.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ EngineConfiguration
constructor
A new instance of EngineConfiguration.
Constructor Details
#initialize(attributes = {}) ⇒ EngineConfiguration
Returns a new instance of EngineConfiguration.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'app/models/scimitar/engine_configuration.rb', line 19 def initialize(attributes = {}) @uses_defaults = attributes.empty? # Set defaults that may be overridden by the initializer. # defaults = { optional_value_fields_required: true } super(defaults.merge(attributes)) end |
Instance Attribute Details
#application_controller_mixin ⇒ Object
Returns the value of attribute application_controller_mixin.
10 11 12 |
# File 'app/models/scimitar/engine_configuration.rb', line 10 def application_controller_mixin @application_controller_mixin end |
#basic_authenticator ⇒ Object
Returns the value of attribute basic_authenticator.
10 11 12 |
# File 'app/models/scimitar/engine_configuration.rb', line 10 def basic_authenticator @basic_authenticator end |
#exception_reporter ⇒ Object
Returns the value of attribute exception_reporter.
10 11 12 |
# File 'app/models/scimitar/engine_configuration.rb', line 10 def exception_reporter @exception_reporter end |
#token_authenticator ⇒ Object
Returns the value of attribute token_authenticator.
10 11 12 |
# File 'app/models/scimitar/engine_configuration.rb', line 10 def token_authenticator @token_authenticator end |
#uses_defaults ⇒ Object
Returns the value of attribute uses_defaults.
10 11 12 |
# File 'app/models/scimitar/engine_configuration.rb', line 10 def uses_defaults @uses_defaults end |