Class: Message
- Inherits:
-
Object
- Object
- Message
- Defined in:
- lib/xmlutils/gdlcontextobjs.rb
Overview
class Message
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#exceptionType ⇒ Object
Returns the value of attribute exceptionType.
-
#msg ⇒ Object
Returns the value of attribute msg.
-
#priorTo ⇒ Object
Returns the value of attribute priorTo.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(attributes) ⇒ Message
Returns a new instance of Message.
279 280 281 282 283 284 285 |
# File 'lib/xmlutils/gdlcontextobjs.rb', line 279 def initialize(attributes) @type = attributes["Type"] # Exceptions, Observation, Condition @exceptionType = attributes["ExceptionType"] # Exceptions @category = attributes["Category"] # 1 => , @priorTo = attributes["PriorTo"] # 1 => , @msg = String.new end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
274 275 276 |
# File 'lib/xmlutils/gdlcontextobjs.rb', line 274 def category @category end |
#exceptionType ⇒ Object
Returns the value of attribute exceptionType.
273 274 275 |
# File 'lib/xmlutils/gdlcontextobjs.rb', line 273 def exceptionType @exceptionType end |
#msg ⇒ Object
Returns the value of attribute msg.
276 277 278 |
# File 'lib/xmlutils/gdlcontextobjs.rb', line 276 def msg @msg end |
#priorTo ⇒ Object
Returns the value of attribute priorTo.
275 276 277 |
# File 'lib/xmlutils/gdlcontextobjs.rb', line 275 def priorTo @priorTo end |
#type ⇒ Object
Returns the value of attribute type.
272 273 274 |
# File 'lib/xmlutils/gdlcontextobjs.rb', line 272 def type @type end |