Sha256: 1215d88886136ff2694e9339bd7b646b8cda39403bb19c0ef3eb4bcbcfb632b1

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 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_with_attrs
        hash = HashWithAttributes.new({}, attributes)

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

        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_clen_dph.rb
money_s3-0.9.0 lib/money_s3/parsers/seznam_clen_dph.rb
money_s3-0.8.0 lib/money_s3/parsers/seznam_clen_dph.rb
money_s3-0.7.0 lib/money_s3/parsers/seznam_clen_dph.rb