Sha256: c8367eeb53d9a67f4deae2ae5ce5ea43d4b6e0c0b4e93b7554b547ed4254874a

Contents?: true

Size: 692 Bytes

Versions: 1

Compression:

Stored size: 692 Bytes

Contents

require 'money_s3/builders/base_builder'
require 'money_s3/builders/mena_type'

module MoneyS3
  module Builders
    class CenovaHladinaType
      include BaseBuilder

      attr_accessor :zkrat, :nazev, :pozn, :skup, :ceny, :mena

      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('Pozn') << pozn) if pozn
        root << (Ox::Element.new('Skup') << skup) if skup
        root << (Ox::Element.new('Ceny') << ceny) if ceny
        root << MenaType.new(mena, 'Mena').builder if mena

        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/cenova_hladina_type.rb