Sha256: 6095a97fbe29950ad828e564ad8d2ae3481869f18d42059d444770fe2052d440

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

module MoneyS3
  module Builders
    class CenaType
      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('Cena', data[:cena], data[:cena_attributes]) if data.key? :cena
        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/cena_type.rb