Sha256: 4f6d0695a1fd2339e54f7143f6685ce31829153503212e43509e66788204eaea
Contents?: true
Size: 655 Bytes
Versions: 6
Compression:
Stored size: 655 Bytes
Contents
module MoneyS3 module Parsers class MsgObjType < MessageType include ParserCore::BaseParser def dod_odb submodel_at(MsgFirmaType, 'DodOdb') end def konec_prij submodel_at(MsgFirmaType, 'KonecPrij') end def polozka array_of_at(MsgPolozType, ['Polozka']) end def to_h hash = {} hash[:attributes] = attributes hash[:dod_odb] = dod_odb.to_h if has? 'DodOdb' hash[:konec_prij] = konec_prij.to_h if has? 'KonecPrij' hash[:polozka] = polozka.map(&:to_h) if has? 'Polozka' hash super.merge(hash) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems