Sha256: c0c445c2d943bc59117dc3638854b698ede5777810ac6e38fbec76eeef241c01
Contents?: true
Size: 734 Bytes
Versions: 1
Compression:
Stored size: 734 Bytes
Contents
module MoneyS3 module Parsers class MsgBanDoklType < MessageType include ParserCore::BaseParser def adresa submodel_at(MessageType, 'Adresa') end def ucet submodel_at(MessageType, 'Ucet') end def uhrada array_of_at(MessageType, ['Uhrada']) end def data submodel_at(BanDoklType, 'Data') end def to_h hash = {} hash[:attributes] = attributes hash[:adresa] = adresa.to_h if has? 'Adresa' hash[:ucet] = ucet.to_h if has? 'Ucet' hash[:uhrada] = uhrada.map(&:to_h) if has? 'Uhrada' 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_ban_dokl_type.rb |