Sha256: 1b8f17ac10fcc926107fdbf8eb1f74327487f359ca9b31c0445783f23c7b1706

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/inv_dokl_type'

module MoneyS3
  module Parsers
    class SeznamInvDokl
      include BaseParser

      def inv_doklad
        array_of_at(InvDoklType, ['InvDoklad'])
      end

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

        hash[:inv_doklad] = inv_doklad.map(&:to_h) if has? 'InvDoklad'

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