Sha256: d7b74216a0c279fd9f3483e24c24890de6f854f6a0aaf05d812f845741b064ce
Contents?: true
Size: 510 Bytes
Versions: 2
Compression:
Stored size: 510 Bytes
Contents
module MoneyS3 module Builders class CenaType 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('Cena', data[:cena]) if data.key? :cena 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/cena_type.rb |
money_s3-0.11.0 | lib/money_s3/builders/cena_type.rb |