Class: Scimitar::EngineConfiguration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_mixinObject

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_authenticatorObject

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_reporterObject

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_authenticatorObject

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_defaultsObject

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