Sha256: ee476c960323600f8a064ac2b58db81796b83bd7cb96fff012bcc38571f4c616

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 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_with_attrs
        hash = HashWithAttributes.new({}, attributes)

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

        hash
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
money_s3-0.10.0 lib/money_s3/parsers/seznam_popt_vyd.rb
money_s3-0.9.0 lib/money_s3/parsers/seznam_popt_vyd.rb
money_s3-0.8.0 lib/money_s3/parsers/seznam_popt_vyd.rb
money_s3-0.7.0 lib/money_s3/parsers/seznam_popt_vyd.rb