Sha256: c130b44f8135870460913a1cd278b397460de50363fc1fb2eaec0594799b4571

Contents?: true

Size: 558 Bytes

Versions: 1

Compression:

Stored size: 558 Bytes

Contents

require 'money_s3/builders/base_builder'

module MoneyS3
  module Builders
    class PrepravceType
      include BaseBuilder

      attr_accessor :zkrat, :nazev, :poznamka, :kod_odesil

      def builder
        root = Ox::Element.new(element_name)

        root << (Ox::Element.new('Zkrat') << zkrat) if zkrat
        root << (Ox::Element.new('Nazev') << nazev) if nazev
        root << (Ox::Element.new('Poznamka') << poznamka) if poznamka
        root << (Ox::Element.new('KodOdesil') << kod_odesil) if kod_odesil

        root
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.4.0 lib/money_s3/builders/prepravce_type.rb