Class: Ausgangsparameter

Inherits:
Poolelement show all
Defined in:
lib/pkm_level2_converter/types.rb

Overview

Ein Ausgangsparameter identifiziert die Rolle einer Information, die von der Geräte-Software zur Anzeige, allgemeinen Ausgabe oder Steuerung verwendet wird.

Instance Attribute Summary collapse

Attributes inherited from Poolelement

#key

Instance Method Summary collapse

Methods inherited from Poolelement

add, get_by_ref

Constructor Details

#initialize(node, index, key) ⇒ Ausgangsparameter

Returns a new instance of Ausgangsparameter.



30
31
32
33
34
# File 'lib/pkm_level2_converter/types.rb', line 30

def initialize(node, index, key)
  super(key, index)
  @nr = node.at('./xmlns:nr').text.to_i
  @name = node.at('./xmlns:name').text
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



36
37
38
# File 'lib/pkm_level2_converter/types.rb', line 36

def name
  @name
end

#nrObject (readonly)

Returns the value of attribute nr.



36
37
38
# File 'lib/pkm_level2_converter/types.rb', line 36

def nr
  @nr
end

Instance Method Details

#cr374?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/pkm_level2_converter/types.rb', line 38

def cr374?
  (nr >= 9000 && nr <= 9999)
end