lib/validation_error.rb in cqm-validators-0.1.1 vs lib/validation_error.rb in cqm-validators-1.0.1.0
- old
+ new
@@ -1,10 +1,12 @@
+# frozen_string_literal: true
+
class ValidationError
- attr_accessor :message, :location, :file_name, :validator
-
- def initialize(params={})
- @location = params[:location]
- @message = params[:message]
- @validator = params[:validator]
- @file_name = params[:file_name]
- end
-end
\ No newline at end of file
+ attr_accessor :message, :location, :file_name, :validator
+
+ def initialize(params = {})
+ @location = params[:location]
+ @message = params[:message]
+ @validator = params[:validator]
+ @file_name = params[:file_name]
+ end
+end