Sha256: 726d554af160465f70c14405dfcc72cfcbedd37eeaac65b4782ddf35170ba915

Contents?: true

Size: 584 Bytes

Versions: 6

Compression:

Stored size: 584 Bytes

Contents

module MoneyS3
  module Builders
    class EShopInfo
      include ParserCore::BaseBuilder

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

        root << build_element('eShopID', data[:e_shop_id], data[:e_shop_id_attributes]) if data.key? :e_shop_id
        root << build_element('eShopName', data[:e_shop_name], data[:e_shop_name_attributes]) if data.key? :e_shop_name
        root << build_element('eSaleID', data[:e_sale_id], data[:e_sale_id_attributes]) if data.key? :e_sale_id

        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/e_shop_info.rb
money_s3-2.4.0 lib/money_s3/builders/e_shop_info.rb
money_s3-2.3.0 lib/money_s3/builders/e_shop_info.rb
money_s3-2.2.0 lib/money_s3/builders/e_shop_info.rb
money_s3-2.1.0 lib/money_s3/builders/e_shop_info.rb
money_s3-2.0.0 lib/money_s3/builders/e_shop_info.rb