Sha256: 63ff86cbc391344c09991a3833a279daaee163c307a7441f83fda936d51e3ce9

Contents?: true

Size: 388 Bytes

Versions: 6

Compression:

Stored size: 388 Bytes

Contents

module MoneyS3
  module Parsers
    class MsgInvDoklType < MessageType
      include ParserCore::BaseParser

      def polozka
        array_of_at(MsgPolozType, ['Polozka'])
      end

      def to_h
        hash = {}
        hash[:attributes] = attributes

        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

Version Path
money_s3-2.4.1 lib/money_s3/parsers/msg_inv_dokl_type.rb
money_s3-2.4.0 lib/money_s3/parsers/msg_inv_dokl_type.rb
money_s3-2.3.0 lib/money_s3/parsers/msg_inv_dokl_type.rb
money_s3-2.2.0 lib/money_s3/parsers/msg_inv_dokl_type.rb
money_s3-2.1.0 lib/money_s3/parsers/msg_inv_dokl_type.rb
money_s3-2.0.0 lib/money_s3/parsers/msg_inv_dokl_type.rb