Class: ValidationError

Inherits:
Object
  • Object
show all
Defined in:
lib/health-data-standards/validate/validation_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ ValidationError

Returns a new instance of ValidationError.



4
5
6
7
8
9
# File 'lib/health-data-standards/validate/validation_error.rb', line 4

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.



2
3
4
# File 'lib/health-data-standards/validate/validation_error.rb', line 2

def file_name
  @file_name
end

#locationObject

Returns the value of attribute location.



2
3
4
# File 'lib/health-data-standards/validate/validation_error.rb', line 2

def location
  @location
end

#messageObject

Returns the value of attribute message.



2
3
4
# File 'lib/health-data-standards/validate/validation_error.rb', line 2

def message
  @message
end

#validatorObject

Returns the value of attribute validator.



2
3
4
# File 'lib/health-data-standards/validate/validation_error.rb', line 2

def validator
  @validator
end