Class: Ausgangsparameter
- Inherits:
-
Poolelement
- Object
- Poolelement
- Ausgangsparameter
- 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
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#nr ⇒ Object
readonly
Returns the value of attribute nr.
Attributes inherited from Poolelement
Instance Method Summary collapse
- #cr374? ⇒ Boolean
-
#initialize(node, index, key) ⇒ Ausgangsparameter
constructor
A new instance of Ausgangsparameter.
Methods inherited from Poolelement
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
36 37 38 |
# File 'lib/pkm_level2_converter/types.rb', line 36 def name @name end |
#nr ⇒ Object (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
38 39 40 |
# File 'lib/pkm_level2_converter/types.rb', line 38 def cr374? (nr >= 9000 && nr <= 9999) end |