lib/inquisitio/configuration.rb in inquisitio-0.1.7 vs lib/inquisitio/configuration.rb in inquisitio-0.2.0

- old
+ new

@@ -8,17 +8,19 @@ SETTINGS = [ :search_endpoint, :document_endpoint, :default_search_size, :dry_run, - :logger + :logger, + :max_attempts ] - + attr_writer *SETTINGS def initialize self.logger = Inquisitio::Logger.new self.dry_run = false + self.max_attempts = 3 end SETTINGS.each do |setting| define_method setting do get_or_raise(setting)