Sha256: 60958185504452cad0bfca1906114a0afccf4f025e0baeace71bb5bb1eae4311

Contents?: true

Size: 986 Bytes

Versions: 2

Compression:

Stored size: 986 Bytes

Contents

module MoneyS3
  module Builders
    class Eshop3
      include ParserCore::BaseBuilder

      def builder
        root = Ox::Element.new(name)
        if data.respond_to? :attributes
          data.attributes.each { |k, v| root[k] = v }
        end

        root << build_element('IN_Export', data[:in_export]) if data.key? :in_export
        root << build_element('IN_Changed', data[:in_changed]) if data.key? :in_changed
        root << build_element('IN_ObjCis', data[:in_obj_cis]) if data.key? :in_obj_cis
        root << build_element('IN_Stav', data[:in_stav]) if data.key? :in_stav
        root << build_element('IN_ReqStor', data[:in_req_stor]) if data.key? :in_req_stor
        root << build_element('IN_YesStor', data[:in_yes_stor]) if data.key? :in_yes_stor
        root << build_element('IN_ShopID', data[:in_shop_id]) if data.key? :in_shop_id
        root << build_element('IN_Poznamk', data[:in_poznamk]) if data.key? :in_poznamk

        root
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
money_s3-0.12.0 lib/money_s3/builders/eshop3.rb
money_s3-0.11.0 lib/money_s3/builders/eshop3.rb