Sha256: 41288e7f6e219625d4851378230dd565a0b3f659f7bc381e59ee58eb38dc092b

Contents?: true

Size: 583 Bytes

Versions: 7

Compression:

Stored size: 583 Bytes

Contents

module MoneyS3
  module Parsers
    class SubpolInvDType
      include ParserCore::BaseParser

      def mn_sada
        at 'MnSada'
      end

      def mn_sada_attributes
        attributes_at 'MnSada'
      end

      def polozka
        submodel_at(PolInvDoklType, 'Polozka')
      end

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

        hash[:mn_sada] = mn_sada if has? 'MnSada'
        hash[:mn_sada_attributes] = mn_sada_attributes if has? 'MnSada'
        hash[:polozka] = polozka.to_h if has? 'Polozka'

        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/subpol_inv_d_type.rb
money_s3-2.4.0 lib/money_s3/parsers/subpol_inv_d_type.rb
money_s3-2.3.0 lib/money_s3/parsers/subpol_inv_d_type.rb
money_s3-2.2.0 lib/money_s3/parsers/subpol_inv_d_type.rb
money_s3-2.1.0 lib/money_s3/parsers/subpol_inv_d_type.rb
money_s3-2.0.0 lib/money_s3/parsers/subpol_inv_d_type.rb
money_s3-1.0.0 lib/money_s3/parsers/subpol_inv_d_type.rb