Class: MoneyS3::Builders::Control
- Inherits:
-
Object
- Object
- MoneyS3::Builders::Control
- Includes:
- ParserCore::BaseBuilder
- Defined in:
- lib/money_s3/builders/control.rb
Instance Method Summary collapse
Instance Method Details
#builder ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/money_s3/builders/control.rb', line 6 def builder root = Ox::Element.new(name) root = add_attributes_and_namespaces(root) if data.key? :cislo_davky root << MessageRootType.new('CisloDavky', data[:cislo_davky]).builder end if data.key? :kod_agendy root << MessageRootType.new('KodAgendy', data[:kod_agendy]).builder end if data.key? :hosp_rok root << MessageRootType.new('HospRok', data[:hosp_rok]).builder end root end |