Sha256: 0af5d7e04f2aca90228ab6b3932741e17809b8a7e8fb4bf84ca04fdc80765608

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/pol_skl_dokl_type'

module MoneyS3
  module Parsers
    class DefSubPolType
      include BaseParser

      def mj_na_sadu
        at 'MJNaSadu'
      end

      def polozka
        submodel_at(PolSklDoklType, 'Polozka')
      end

      def to_h
        hash = WithAttributes.new({})
        hash.attributes = attributes

        hash[:mj_na_sadu] = mj_na_sadu if has? 'MJNaSadu'
        hash[:polozka] = polozka.to_h if has? 'Polozka'

        hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.6.0 lib/money_s3/parsers/def_sub_pol_type.rb