Sha256: 0e5631e47b15db72f5f90c378d7e39fe625e5face3af8491f8ee8b66dd2138aa
Contents?: true
Size: 644 Bytes
Versions: 6
Compression:
Stored size: 644 Bytes
Contents
module MoneyS3 module Parsers class MsgPokDoklType < MessageType include ParserCore::BaseParser def adresa submodel_at(MessageType, 'Adresa') end def polozka array_of_at(MessageType, ['Polozka']) end def uhrada array_of_at(MessageType, ['Uhrada']) end def to_h hash = {} hash[:attributes] = attributes hash[:adresa] = adresa.to_h if has? 'Adresa' hash[:polozka] = polozka.map(&:to_h) if has? 'Polozka' hash[:uhrada] = uhrada.map(&:to_h) if has? 'Uhrada' hash super.merge(hash) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems