Sha256: 3b16f226bd87ce89bae4123aaf91d8bda4e02b42f55be8260bb53f377242fb2d

Contents?: true

Size: 408 Bytes

Versions: 4

Compression:

Stored size: 408 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/firma'

module MoneyS3
  module Parsers
    class SeznamFirem
      include BaseParser

      def firma
        array_of_at(Firma, ['Firma'])
      end

      def to_h_with_attrs
        hash = HashWithAttributes.new({}, attributes)

        hash[:firma] = firma.map(&:to_h_with_attrs) if has? 'Firma'

        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_firem.rb
money_s3-0.9.0 lib/money_s3/parsers/seznam_firem.rb
money_s3-0.8.0 lib/money_s3/parsers/seznam_firem.rb
money_s3-0.7.0 lib/money_s3/parsers/seznam_firem.rb