Sha256: 72143c85bde868bb29c03500a5d526037ed8e1381aafd4f61bd58b1a979b8f59
Contents?: true
Size: 494 Bytes
Versions: 6
Compression:
Stored size: 494 Bytes
Contents
module MoneyS3 module Parsers class MsgZasobaType < MessageType include ParserCore::BaseParser def km_kart submodel_at(MessageType, 'KmKart') end def sklad submodel_at(MessageType, 'Sklad') end def to_h hash = {} hash[:attributes] = attributes hash[:km_kart] = km_kart.to_h if has? 'KmKart' hash[:sklad] = sklad.to_h if has? 'Sklad' hash super.merge(hash) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems