Sha256: a9cea9882c7d7ecfcf10e85a6d4693e996f4a22be3f9541b057009217ce70173

Contents?: true

Size: 580 Bytes

Versions: 5

Compression:

Stored size: 580 Bytes

Contents

require 'money_s3/builders/base_builder'

module MoneyS3
  module Builders
    class EShopInfo
      include 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('eShopID', data[:e_shop_id]) if data.key? :e_shop_id
        root << build_element('eShopName', data[:e_shop_name]) if data.key? :e_shop_name
        root << build_element('eSaleID', data[:e_sale_id]) if data.key? :e_sale_id

        root
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
money_s3-0.10.0 lib/money_s3/builders/e_shop_info.rb
money_s3-0.9.0 lib/money_s3/builders/e_shop_info.rb
money_s3-0.8.0 lib/money_s3/builders/e_shop_info.rb
money_s3-0.7.0 lib/money_s3/builders/e_shop_info.rb
money_s3-0.6.0 lib/money_s3/builders/e_shop_info.rb