Sha256: feffd06557ce9a909a6aa87148d97abe1323d5d4cfb0990c5794001928a24235

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/clen_dph'

module MoneyS3
  module Parsers
    class SeznamClenDPH
      include BaseParser

      def clen_dph
        array_of_at(ClenDPH, ['ClenDPH'])
      end

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

        hash[:clen_dph] = clen_dph.map(&:to_h) if has? 'ClenDPH'

        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_clen_dph.rb