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


4
5
6
7
8
9
# File 'lib/active_fedora/config.rb', line 4

def initialize(val)
  @credentials = val.symbolize_keys
  unless @credentials.has_key?(:url)
    raise ActiveFedora::ConfigurationError, "Fedora configuration must provide :url."
  end
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