Sha256: 645eb5bcfa1c20bc84c8d3daf6d67ce7111438116af21496f7372fd5935e63c9

Contents?: true

Size: 443 Bytes

Versions: 1

Compression:

Stored size: 443 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/pol_inv_dokl_type'

module MoneyS3
  module Parsers
    class SubpolInvDType
      include BaseParser

      def mn_sada
        at :MnSada
      end

      def polozka
        submodel_at(PolInvDoklType, :Polozka)
      end

      def to_h
        { mn_sada: mn_sada,
          polozka: polozka.to_h
        }.delete_if { |k, v| v.nil? || v.empty? }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.4.0 lib/money_s3/parsers/subpol_inv_d_type.rb