lib/archivesspace/client/client.rb in archivesspace-client-0.1.4 vs lib/archivesspace/client/client.rb in archivesspace-client-0.1.5

- old
+ new

@@ -4,10 +4,12 @@ include Helpers attr_accessor :token attr_reader :config def initialize(config = Configuration.new) - raise "Invalid configuration object" unless config.kind_of? ArchivesSpace::Configuration + unless config.kind_of? ArchivesSpace::Configuration + raise "Invalid configuration object" + end @config = config @token = nil end def get(path, options = {})