Sha256: 3b8f4f49a1c635023d9743c941d97dec1e4ff44e570052cc19e3b0eb32eb345a
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 Bytes
Contents
module MoneyS3 module Builders class SlevaType include ParserCore::BaseBuilder def builder root = Ox::Element.new(name) if data.key? :attributes data[:attributes].each { |k, v| root[k] = v } end root << build_element('Limit', data[:limit], data[:limit_attributes]) if data.key? :limit root << build_element('Sleva', data[:sleva], data[:sleva_attributes]) if data.key? :sleva root end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-1.0.0 | lib/money_s3/builders/sleva_type.rb |