Class: IPXACT::Tools::ValidationMessage
- Inherits:
-
Struct
- Object
- Struct
- IPXACT::Tools::ValidationMessage
- Defined in:
- lib/ipxact_tools.rb
Overview
A simple structure for handling diagnosis messages.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cause_element ⇒ Object
Returns the value of attribute cause_element.
-
#reason ⇒ Object
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(hash) ⇒ ValidationMessage
constructor
A new instance of ValidationMessage.
Constructor Details
#initialize(hash) ⇒ ValidationMessage
Returns a new instance of ValidationMessage.
52 53 54 55 56 |
# File 'lib/ipxact_tools.rb', line 52 def initialize(hash) entry = hash.entries[0] self.reason = entry[0] self.cause_element = entry[1] end |
Instance Attribute Details
#cause_element ⇒ Object
Returns the value of attribute cause_element
51 52 53 |
# File 'lib/ipxact_tools.rb', line 51 def cause_element @cause_element end |
#reason ⇒ Object
Returns the value of attribute reason
51 52 53 |
# File 'lib/ipxact_tools.rb', line 51 def reason @reason end |