Sha256: 2ca53e83384ec95d45e195e9d09c237c4a482d9708134ed68582125ea6578bfc

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 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
        hash = WithAttributes.new({})
        hash.attributes = attributes

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

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