Sha256: bf38965517c08a87daae9fa93a2c79b2b746ecf0ec0f0b895251133b3875d3ca

Contents?: true

Size: 432 Bytes

Versions: 4

Compression:

Stored size: 432 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/prevodka'

module MoneyS3
  module Parsers
    class SeznamPrevodka
      include BaseParser

      def prevodka
        array_of_at(Prevodka, ['Prevodka'])
      end

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

        hash[:prevodka] = prevodka.map(&:to_h_with_attrs) if has? 'Prevodka'

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