Sha256: 9c9cbef7295547eb0a832ebab782963ceda76cc73782df7df4866ee394150a0b

Contents?: true

Size: 465 Bytes

Versions: 4

Compression:

Stored size: 465 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/zamestnanec_type'

module MoneyS3
  module Parsers
    class SeznamZamestnancu
      include BaseParser

      def zamestnanec
        array_of_at(ZamestnanecType, ['Zamestnanec'])
      end

      def to_h_with_attrs
        hash = HashWithAttributes.new({}, attributes)

        hash[:zamestnanec] = zamestnanec.map(&:to_h_with_attrs) if has? 'Zamestnanec'

        hash
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
money_s3-0.10.0 lib/money_s3/parsers/seznam_zamestnancu.rb
money_s3-0.9.0 lib/money_s3/parsers/seznam_zamestnancu.rb
money_s3-0.8.0 lib/money_s3/parsers/seznam_zamestnancu.rb
money_s3-0.7.0 lib/money_s3/parsers/seznam_zamestnancu.rb