lib/rubydora/repository.rb in rubydora-0.5.0 vs lib/rubydora/repository.rb in rubydora-0.5.1
- old
+ new
@@ -1,5 +1,7 @@
+require 'active_support/core_ext/hash/indifferent_access'
+
module Rubydora
# Fedora Repository object that provides API access
class Repository
include ResourceIndex
include RestApiClient
@@ -11,10 +13,10 @@
# @option options [String] :url
# @option options [String] :user
# @option options [String] :password
# @option options [Boolean] :validateChecksum
def initialize options = {}
- @config = options
+ @config = options.symbolize_keys
load_api_abstraction
end
# {include:DigitalObject.find}
def find pid