Sha256: bad06251d5c5294e0a43bfbfc31234e695c1b18b304b70b69f493ec15af93b1a
Contents?: true
Size: 520 Bytes
Versions: 6
Compression:
Stored size: 520 Bytes
Contents
module MoneyS3 module Parsers class MsgFaktDpptype < MessageType include ParserCore::BaseParser def dod_odb submodel_at(MsgFirmaType, 'DodOdb') end def polozka array_of_at(MsgFaktPolozType, ['Polozka']) end def to_h hash = {} hash[:attributes] = attributes hash[:dod_odb] = dod_odb.to_h if has? 'DodOdb' 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