Sha256: 0f47a613abdff0de711f177c00d40ebb64081b9e8c0e404745d041a0506d45f0

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/fakt_vyd'

module MoneyS3
  module Parsers
    class SeznamFaktVyd
      include BaseParser

      def fakt_vyd
        array_of_at(FaktVyd, ['FaktVyd'])
      end

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

        hash[:fakt_vyd] = fakt_vyd.map(&:to_h) if has? 'FaktVyd'

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