Sha256: b4268dec1b6aea9f96db1000fd9d4562bf87b4ae929653155abf91c66f00b534

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

require 'money_s3/base_element'

module MoneyS3
  class Castky
    include BaseElement

    def celkem
      at :Celkem
    end

    def zaklad_0
      at :Zaklad_0
    end

    def zaklad_1
      at :Zaklad_1
    end

    def zaklad_2
      at :Zaklad_2
    end

    def zaklad_3
      at :Zaklad_3
    end

    def dph_1
      at :DPH_1
    end

    def dph_2
      at :DPH_2
    end

    def dph_3
      at :DPH_3
    end

    def cest_sluzba
      at :CestSluzba
    end

    def pouz_zb_1
      at :PouzZb_1
    end

    def pouz_zb_2
      at :PouzZb_2
    end

    def pouz_zb_3
      at :PouzZb_3
    end

    def urc_cerp_zct
      at :UrcCerpZct
    end

    def cerp_zuct
      at :CerpZuct
    end

    def to_h
      { celkem: celkem,
        zaklad_0: zaklad_0,
        zaklad_1: zaklad_1,
        zaklad_2: zaklad_2,
        zaklad_3: zaklad_3,
        dph_1: dph_1,
        dph_2: dph_2,
        dph_3: dph_3,
        cest_sluzba: cest_sluzba,
        pouz_zb_1: pouz_zb_1,
        pouz_zb_2: pouz_zb_2,
        pouz_zb_3: pouz_zb_3,
        urc_cerp_zct: urc_cerp_zct,
        cerp_zuct: cerp_zuct
      }.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/castky.rb