Sha256: 484f09049a57bd5f77e7bf3a816348aaeddb939ca6abd1a2a76579da4d1c0b49

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/int_dokl'

module MoneyS3
  module Parsers
    class SeznamIntDokl
      include BaseParser

      def int_dokl
        array_of_at(IntDokl, ['IntDokl'])
      end

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

        hash[:int_dokl] = int_dokl.map(&:to_h) if has? 'IntDokl'

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