Class: ValidationError
- Inherits:
-
Object
- Object
- ValidationError
- Defined in:
- lib/health-data-standards/validate/validation_error.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#location ⇒ Object
Returns the value of attribute location.
-
#message ⇒ Object
Returns the value of attribute message.
-
#validator ⇒ Object
Returns the value of attribute validator.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ ValidationError
constructor
A new instance of ValidationError.
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_name ⇒ Object
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 |
#location ⇒ Object
Returns the value of attribute location.
2 3 4 |
# File 'lib/health-data-standards/validate/validation_error.rb', line 2 def location @location end |
#message ⇒ Object
Returns the value of attribute message.
2 3 4 |
# File 'lib/health-data-standards/validate/validation_error.rb', line 2 def @message end |
#validator ⇒ Object
Returns the value of attribute validator.
2 3 4 |
# File 'lib/health-data-standards/validate/validation_error.rb', line 2 def validator @validator end |