Sha256: dadbdaf0eda199d2d42b0614f5822652962927620b42d00256f076aad0e692ba

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

require 'money_s3/base_element'
require 'money_s3/pol_skl_dokl_type'

module MoneyS3
  class DefSubPolType
    include BaseElement

    def mj_na_sadu
      at :MJNaSadu
    end

    def polozka
      submodel_at(PolSklDoklType, :Polozka)
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.3.0 lib/money_s3/def_sub_pol_type.rb