Class: ValidationError

Inherits:
Object
  • Object
show all
Defined in:
lib/validation_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ ValidationError

Returns a new instance of ValidationError.



6
7
8
9
10
11
# File 'lib/validation_error.rb', line 6

def initialize(params = {})
  @location = params[:location]
  @message = params[:message]
  @validator = params[:validator]
  @file_name = params[:file_name]
end

Instance Attribute Details

#file_nameObject

Returns the value of attribute file_name.



4
5
6
# File 'lib/validation_error.rb', line 4

def file_name
  @file_name
end

#locationObject

Returns the value of attribute location.



4
5
6
# File 'lib/validation_error.rb', line 4

def location
  @location
end

#messageObject

Returns the value of attribute message.



4
5
6
# File 'lib/validation_error.rb', line 4

def message
  @message
end

#validatorObject

Returns the value of attribute validator.



4
5
6
# File 'lib/validation_error.rb', line 4

def validator
  @validator
end