Sha256: 86290752f4915b1ed437dda3a2c569ae1764c053fa6328a06e7f7c774c158547
Contents?: true
Size: 522 Bytes
Versions: 1
Compression:
Stored size: 522 Bytes
Contents
module MoneyS3 module Parsers class MsgKmKartaType < MessageType include ParserCore::BaseParser def komponenta array_of_at(MsgKomponentaType, ['Komponenta']) end def data submodel_at(KmKartaType, 'Data') end def to_h hash = {} hash[:attributes] = attributes hash[:komponenta] = komponenta.map(&:to_h) if has? 'Komponenta' hash[:data] = data.to_h if has? 'Data' hash super.merge(hash) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-1.0.0 | lib/money_s3/parsers/msg_km_karta_type.rb |