Sha256: 5f0b866d6500bc93c18cc06e7904c77c94bb034d505f9a76e1719a14d779beb6

Contents?: true

Size: 498 Bytes

Versions: 7

Compression:

Stored size: 498 Bytes

Contents

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

      def km_karta
        submodel_at(MessageType, 'KmKarta')
      end

      def sklad
        submodel_at(MessageType, 'Sklad')
      end

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

        hash[:km_karta] = km_karta.to_h if has? 'KmKarta'
        hash[:sklad] = sklad.to_h if has? 'Sklad'

        hash
        super.merge(hash)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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