Sha256: 123349dfb4334c8f73695b88c093d695b071d2e008b9badc369c3c4f943b339e

Contents?: true

Size: 555 Bytes

Versions: 1

Compression:

Stored size: 555 Bytes

Contents

require 'money_s3/builders/base_builder'
require 'money_s3/builders/firma_type'
require 'money_s3/builders/message_type'

module MoneyS3
  module Builders
    class MsgFirmaType
      include BaseBuilder

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

        if attributes.key? :data
          root << FirmaType.new(attributes[:data], 'Data').builder
        end

        if attributes.key? :osoba
          attributes[:osoba].each { |i| root << MessageType.new(i, 'Osoba').builder }
        end

        root
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.5.0 lib/money_s3/builders/msg_firma_type.rb