Sha256: 389ead8d446f87d8a18f4b6ae973293187e79243051e07c630f7d381f7626927

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/mzda_type'

module MoneyS3
  module Parsers
    class SeznamMezd
      include BaseParser

      def mzda
        array_of_at(MzdaType, ['Mzda'])
      end

      def to_h
        hash = WithAttributes.new({})
        hash.attributes = attributes

        hash[:mzda] = mzda.map(&:to_h) if has? 'Mzda'

        hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.6.0 lib/money_s3/parsers/seznam_mezd.rb