Sha256: 91d669892f69320cbe452bd1ff02ba5528d02e1ba9af95224e8b4deab1ccd383

Contents?: true

Size: 372 Bytes

Versions: 1

Compression:

Stored size: 372 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
        hash = {}

        hash[:km_karta] = km_karta.map(&:to_h) if raw.key? :KmKarta

        hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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