Sha256: aa8302d5a3aa026dfd5879f453820ffd5b517dbc2ff600b0095290d13c188d95

Contents?: true

Size: 550 Bytes

Versions: 1

Compression:

Stored size: 550 Bytes

Contents

require 'money_s3/base_element'
require 'money_s3/valuty'

module MoneyS3
  class SouhrnDPHPolType
    include BaseElement

    def zaklad_mj
      at :Zaklad_MJ
    end

    def dph_mj
      at :DPH_MJ
    end

    def zaklad
      at :Zaklad
    end

    def dph
      at :DPH
    end

    def valuty
      submodel_at(Valuty, :Valuty)
    end

    def to_h
      { zaklad_mj: zaklad_mj,
        dph_mj: dph_mj,
        zaklad: zaklad,
        dph: dph,
        valuty: valuty.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/souhrn_dph_pol_type.rb