Class: Message

Inherits:
Object
  • Object
show all
Defined in:
lib/xmlutils/gdlcontextobjs.rb

Overview

class Message

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#categoryObject

Returns the value of attribute category.



274
275
276
# File 'lib/xmlutils/gdlcontextobjs.rb', line 274

def category
  @category
end

#exceptionTypeObject

Returns the value of attribute exceptionType.



273
274
275
# File 'lib/xmlutils/gdlcontextobjs.rb', line 273

def exceptionType
  @exceptionType
end

#msgObject

Returns the value of attribute msg.



276
277
278
# File 'lib/xmlutils/gdlcontextobjs.rb', line 276

def msg
  @msg
end

#priorToObject

Returns the value of attribute priorTo.



275
276
277
# File 'lib/xmlutils/gdlcontextobjs.rb', line 275

def priorTo
  @priorTo
end

#typeObject

Returns the value of attribute type.



272
273
274
# File 'lib/xmlutils/gdlcontextobjs.rb', line 272

def type
  @type
end