Sha256: 3d40cb7a4e4b97c1ad9db2de60effc49d1b5fe00e7876900ab7dcf16d183cd9d
Contents?: true
Size: 427 Bytes
Versions: 1
Compression:
Stored size: 427 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 = WithAttributes.new({}) hash.attributes = attributes hash[:km_karta] = km_karta.map(&:to_h) if has? 'KmKarta' 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_km_karta.rb |