Sha256: 1020ed995e51ab22c3232f944499c9bf653b00e444662ca6cfb1967fe96b9bfc

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/km_karta'

module MoneyS3
  module Parsers
    class SeznamKmKarta
      include BaseParser

      def km_karta
        array_of_at(KmKarta, [:KmKarta])
      end

      def to_h
        { km_karta: km_karta.map(&:to_h)
        }.delete_if { |k, v| v.nil? || v.empty? }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.4.0 lib/money_s3/parsers/seznam_km_karta.rb