Sha256: cc5ebe64a3175b361611cbfbfb737a8665c5249c173b02d9f38c2a7424b70420

Contents?: true

Size: 1.82 KB

Versions: 1

Compression:

Stored size: 1.82 KB

Contents

require 'money_s3/base_element'
require 'money_s3/ucty_pohybu_type'

module MoneyS3
  class SkladType
    include BaseElement

    def nazev
      at :Nazev
    end

    def kod_skladu
      at :KodSkladu
    end

    def guid
      at :GUID
    end

    def cenik_sklad
      at :CenikSklad
    end

    def platno_od
      at :PlatnoOd
    end

    def platno_do
      at :PlatnoDo
    end

    def minus
      at :Minus
    end

    def neupoz
      at :Neupoz
    end

    def vyber_cen
      at :Vyber_cen
    end

    def vyber_dod
      at :Vyber_dod
    end

    def zpusob
      at :Zpusob
    end

    def prod_ceny_d
      at :ProdCenyD
    end

    def prepocet
      at :Prepocet
    end

    def ceny
      at :Ceny
    end

    def uc_vyrobk_vv
      at :UcVyrobkVV
    end

    def prodejk_vz
      at :ProdejkVz
    end

    def v_dod_lst_vz
      at :VDodLstVz
    end

    def p_dod_lst_vz
      at :PDodLstVz
    end

    def uc_pohyb_m
      submodel_at(UctyPohybuType, :UcPohybM)
    end

    def uc_pohyb_z
      submodel_at(UctyPohybuType, :UcPohybZ)
    end

    def uc_pohyb_v
      submodel_at(UctyPohybuType, :UcPohybV)
    end

    def to_h
      { nazev: nazev,
        kod_skladu: kod_skladu,
        guid: guid,
        cenik_sklad: cenik_sklad,
        platno_od: platno_od,
        platno_do: platno_do,
        minus: minus,
        neupoz: neupoz,
        vyber_cen: vyber_cen,
        vyber_dod: vyber_dod,
        zpusob: zpusob,
        prod_ceny_d: prod_ceny_d,
        prepocet: prepocet,
        ceny: ceny,
        uc_vyrobk_vv: uc_vyrobk_vv,
        prodejk_vz: prodejk_vz,
        v_dod_lst_vz: v_dod_lst_vz,
        p_dod_lst_vz: p_dod_lst_vz,
        uc_pohyb_m: uc_pohyb_m.to_h,
        uc_pohyb_z: uc_pohyb_z.to_h,
        uc_pohyb_v: uc_pohyb_v.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/sklad_type.rb