Sha256: e593ce151c75f67da4f5bd4a1eb0644ba89d5a08187fb80d4ae91d45531ddacd

Contents?: true

Size: 1.14 KB

Versions: 6

Compression:

Stored size: 1.14 KB

Contents

module MoneyS3
  module Builders
    class Eshop3
      include ParserCore::BaseBuilder

      def builder
        root = Ox::Element.new(name)
        root = add_attributes_and_namespaces(root)

        root << build_element('IN_Export', data[:in_export], data[:in_export_attributes]) if data.key? :in_export
        root << build_element('IN_Changed', data[:in_changed], data[:in_changed_attributes]) if data.key? :in_changed
        root << build_element('IN_ObjCis', data[:in_obj_cis], data[:in_obj_cis_attributes]) if data.key? :in_obj_cis
        root << build_element('IN_Stav', data[:in_stav], data[:in_stav_attributes]) if data.key? :in_stav
        root << build_element('IN_ReqStor', data[:in_req_stor], data[:in_req_stor_attributes]) if data.key? :in_req_stor
        root << build_element('IN_YesStor', data[:in_yes_stor], data[:in_yes_stor_attributes]) if data.key? :in_yes_stor
        root << build_element('IN_ShopID', data[:in_shop_id], data[:in_shop_id_attributes]) if data.key? :in_shop_id
        root << build_element('IN_Poznamk', data[:in_poznamk], data[:in_poznamk_attributes]) if data.key? :in_poznamk

        root
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/builders/eshop3.rb
money_s3-2.4.0 lib/money_s3/builders/eshop3.rb
money_s3-2.3.0 lib/money_s3/builders/eshop3.rb
money_s3-2.2.0 lib/money_s3/builders/eshop3.rb
money_s3-2.1.0 lib/money_s3/builders/eshop3.rb
money_s3-2.0.0 lib/money_s3/builders/eshop3.rb