lib/deepl/configuration.rb in deepl-rb-2.5.0 vs lib/deepl/configuration.rb in deepl-rb-2.5.1

- old
+ new

@@ -6,10 +6,10 @@ attr_accessor(*ATTRIBUTES) def initialize(data = {}) data.each { |key, value| send("#{key}=", value) } - @auth_key ||= ENV['DEEPL_AUTH_KEY'] + @auth_key ||= ENV.fetch('DEEPL_AUTH_KEY', nil) @host ||= 'https://api.deepl.com' @version ||= 'v2' end def validate!