Sha256: 60f269df3659b2e71763e570b134bfd9202f302dee8d69435106736a3f5c5af1

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/predkontace'

module MoneyS3
  module Parsers
    class SeznamPredkontaci
      include BaseParser

      def predkontace
        array_of_at(Predkontace, ['Predkontace'])
      end

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

        hash[:predkontace] = predkontace.map(&:to_h) if has? 'Predkontace'

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