Sha256: 347f599dff6a95155003708ae58780f9a73e44230ad7062383d9910385fbc236
Contents?: true
Size: 678 Bytes
Versions: 2
Compression:
Stored size: 678 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 data submodel_at(IntDoklType, 'Data') end def to_h_with_attrs hash = ParserCore::HashWithAttributes.new({}, attributes) hash[:adresa] = adresa.to_h_with_attrs if has? 'Adresa' hash[:polozka] = polozka.map(&:to_h_with_attrs) if has? 'Polozka' hash[:data] = data.to_h_with_attrs if has? 'Data' hash super.merge(hash) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.12.0 | lib/money_s3/parsers/msg_int_dokl_type.rb |
money_s3-0.11.0 | lib/money_s3/parsers/msg_int_dokl_type.rb |