Class: ActiveFedora::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/active_fedora/config.rb

Defined Under Namespace

Classes: FedoraGenerator, SolrGenerator

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#credentialsObject (readonly)

Returns the value of attribute credentials.



3
4
5
# File 'lib/active_fedora/config.rb', line 3

def credentials
  @credentials
end