Sha256: a7c84c250fcbeadd856c55dfc506988fde416127f3170b7c18899f2a7b74c585

Contents?: true

Size: 484 Bytes

Versions: 1

Compression:

Stored size: 484 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/predkontace_de_type'

module MoneyS3
  module Parsers
    class SeznamPredkontaciDE
      include BaseParser

      def predkontace_de
        array_of_at(PredkontaceDEType, ['PredkontaceDE'])
      end

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

        hash[:predkontace_de] = predkontace_de.map(&:to_h) if has? 'PredkontaceDE'

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