Sha256: 9dbe85887f95f2f133ad680d8c7a8e4ec43a4a84605930d0d6a86e9eee00eb2a
Contents?: true
Size: 511 Bytes
Versions: 6
Compression:
Stored size: 511 Bytes
Contents
module MoneyS3 module Parsers class MsgIntDoklType < MessageType include ParserCore::BaseParser def adresa submodel_at(MessageType, 'Adresa') end def polozka array_of_at(MessageType, ['Polozka']) 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 super.merge(hash) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems