Sha256: 7be8dce0e00a1d3b33833f2e34b476ab1777799bd66e7ad66d30c5a36f0b6fd9

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/popt_vyd'

module MoneyS3
  module Parsers
    class SeznamPoptVyd
      include BaseParser

      def popt_vyd
        array_of_at(PoptVyd, ['PoptVyd'])
      end

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

        hash[:popt_vyd] = popt_vyd.map(&:to_h) if has? 'PoptVyd'

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