lib/deepl/configuration.rb in deepl-rb-2.3.1 vs lib/deepl/configuration.rb in deepl-rb-2.4.0
- old
+ new
@@ -16,10 +16,10 @@
def validate!
raise Exceptions::Error, 'auth_key not provided' if auth_key.nil? || auth_key.empty?
end
def attributes
- ATTRIBUTES.map { |attr| [attr, send(attr)] }.to_h
+ ATTRIBUTES.to_h { |attr| [attr, send(attr)] }
end
def ==(other)
attributes == other.attributes
end