Class: ActiveFedora::Config
- Inherits:
-
Object
- Object
- ActiveFedora::Config
- Defined in:
- lib/active_fedora/config.rb
Defined Under Namespace
Classes: FedoraGenerator, SolrGenerator
Instance Attribute Summary collapse
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
Instance Method Summary collapse
-
#initialize(val) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(val) ⇒ Config
Returns a new instance of Config.
4 5 6 7 8 |
# File 'lib/active_fedora/config.rb', line 4 def initialize(val) @credentials = val.deep_symbolize_keys return if @credentials.key?(:url) raise ActiveFedora::ConfigurationError, "Fedora configuration must provide :url." end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
3 4 5 |
# File 'lib/active_fedora/config.rb', line 3 def credentials @credentials end |