Class: AusgangsschnittstellenPool

Inherits:
Pool
  • Object
show all
Defined in:
lib/pkm_level2_converter/pools.rb

Overview

Ein XML-Ausgangsschnittstelle-Poolkodiert die Auflistung allerAusgangsschnittstellen einesTarifmoduls.

Instance Attribute Summary

Attributes inherited from Pool

#items, #key

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pool

#empty?, #get_by_reference, #length, parse_pool

Constructor Details

#initialize(xml_node) ⇒ AusgangsschnittstellenPool

Returns a new instance of AusgangsschnittstellenPool.



71
72
73
# File 'lib/pkm_level2_converter/pools.rb', line 71

def initialize(xml_node)
  super(xml_node, AusgangsschnittstellenPool.type)
end

Class Method Details

.typeObject



67
68
69
# File 'lib/pkm_level2_converter/pools.rb', line 67

def self.type
  Ausgangsschnittstelle
end

Instance Method Details

#cr374Object



75
76
77
# File 'lib/pkm_level2_converter/pools.rb', line 75

def cr374
  @items.select(&:cr374?)
end

#cr374?Boolean

def cr374_asst_pool_set

cr374.to_set

end

Returns:

  • (Boolean)


83
84
85
# File 'lib/pkm_level2_converter/pools.rb', line 83

def cr374?
  !cr374.empty?
end