Class: Rafflesia::OntologyValidationViolation
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyValidationViolation
- Defined in:
- lib/rafflesia/ontology/ontology_validation_violation.rb
Constant Summary collapse
- HASH_ATTRS =
{ actual: :actual, code: :code, expected: :expected, message: :message, path: :path, severity: :severity, suggested_repair: :suggested_repair }.freeze
Instance Attribute Summary collapse
-
#actual ⇒ Object
Returns the value of attribute actual.
-
#code ⇒ Object
Returns the value of attribute code.
-
#expected ⇒ Object
Returns the value of attribute expected.
-
#message ⇒ Object
Returns the value of attribute message.
-
#path ⇒ Object
Returns the value of attribute path.
-
#severity ⇒ Object
Returns the value of attribute severity.
-
#suggested_repair ⇒ Object
Returns the value of attribute suggested_repair.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyValidationViolation
constructor
A new instance of OntologyValidationViolation.
Constructor Details
#initialize(json) ⇒ OntologyValidationViolation
Returns a new instance of OntologyValidationViolation.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/ontology/ontology_validation_violation.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @actual = hash[:actual] @code = hash[:code] @expected = hash[:expected] @message = hash[:message] @path = hash[:path] @severity = hash[:severity] @suggested_repair = hash[:suggested_repair] end |
Instance Attribute Details
#actual ⇒ Object
Returns the value of attribute actual.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_validation_violation.rb', line 18 def actual @actual end |
#code ⇒ Object
Returns the value of attribute code.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_validation_violation.rb', line 18 def code @code end |
#expected ⇒ Object
Returns the value of attribute expected.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_validation_violation.rb', line 18 def expected @expected end |
#message ⇒ Object
Returns the value of attribute message.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_validation_violation.rb', line 18 def @message end |
#path ⇒ Object
Returns the value of attribute path.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_validation_violation.rb', line 18 def path @path end |
#severity ⇒ Object
Returns the value of attribute severity.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_validation_violation.rb', line 18 def severity @severity end |
#suggested_repair ⇒ Object
Returns the value of attribute suggested_repair.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_validation_violation.rb', line 18 def suggested_repair @suggested_repair end |