Sha256: 5809a3820dfff8200dcb74c5adc7d8dff984522e5b7b65213e0f5889037557db
Contents?: true
Size: 441 Bytes
Versions: 2
Compression:
Stored size: 441 Bytes
Contents
module MoneyS3 module Builders class SlevaType 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('Limit', data[:limit]) if data.key? :limit root << build_element('Sleva', data[:sleva]) if data.key? :sleva 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/sleva_type.rb |
money_s3-0.11.0 | lib/money_s3/builders/sleva_type.rb |