Class: Retab::WorkflowTableValidationDiagnostic
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::WorkflowTableValidationDiagnostic
- Defined in:
- lib/retab/tables/workflow_table_validation_diagnostic.rb
Constant Summary collapse
- HASH_ATTRS =
{ severity: :severity, column: :column, rule: :rule, message: :message }.freeze
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#message ⇒ Object
Returns the value of attribute message.
-
#rule ⇒ Object
Returns the value of attribute rule.
-
#severity ⇒ Object
Returns the value of attribute severity.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ WorkflowTableValidationDiagnostic
constructor
A new instance of WorkflowTableValidationDiagnostic.
Methods inherited from Types::BaseModel
deep_symbolize, #inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ WorkflowTableValidationDiagnostic
Returns a new instance of WorkflowTableValidationDiagnostic.
22 23 24 25 26 27 28 29 |
# File 'lib/retab/tables/workflow_table_validation_diagnostic.rb', line 22 def initialize(json) super() hash = self.class.normalize(json) @severity = hash[:severity] @column = hash[:column] @rule = hash[:rule] @message = hash[:message] end |
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column.
15 16 17 |
# File 'lib/retab/tables/workflow_table_validation_diagnostic.rb', line 15 def column @column end |
#message ⇒ Object
Returns the value of attribute message.
15 16 17 |
# File 'lib/retab/tables/workflow_table_validation_diagnostic.rb', line 15 def @message end |
#rule ⇒ Object
Returns the value of attribute rule.
15 16 17 |
# File 'lib/retab/tables/workflow_table_validation_diagnostic.rb', line 15 def rule @rule end |
#severity ⇒ Object
Returns the value of attribute severity.
15 16 17 |
# File 'lib/retab/tables/workflow_table_validation_diagnostic.rb', line 15 def severity @severity end |