Class: AusgangskontextPool

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

Overview

Ein XML-Ausgangskontext-Pool kodiert die Auflistung aller Ausgangskontext 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) ⇒ AusgangskontextPool

Returns a new instance of AusgangskontextPool.



44
45
46
# File 'lib/pkm_level2_converter/pools.rb', line 44

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

Class Method Details

.typeObject



40
41
42
# File 'lib/pkm_level2_converter/pools.rb', line 40

def self.type
  Ausgangskontext
end

Instance Method Details

#get_by_parameter(parameter) ⇒ Object



48
49
50
# File 'lib/pkm_level2_converter/pools.rb', line 48

def get_by_parameter(parameter)
  @items.select { |ausgangskontext| ausgangskontext.contains_parameter?(parameter) }
end