Class: MoneyS3::Parsers::PolSklDoklType

Inherits:
Object
  • Object
show all
Includes:
ParserCore::BaseParser
Defined in:
lib/money_s3/parsers/pol_skl_dokl_type.rb

Instance Method Summary collapse

Instance Method Details

#cenaObject



22
23
24
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 22

def cena
  at 'Cena'
end

#cena_attributesObject



26
27
28
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 26

def cena_attributes
  attributes_at 'Cena'
end

#cena_po_sleveObject



182
183
184
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 182

def cena_po_sleve
  at 'CenaPoSleve'
end

#cena_po_sleve_attributesObject



186
187
188
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 186

def cena_po_sleve_attributes
  attributes_at 'CenaPoSleve'
end

#cena_typObject



46
47
48
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 46

def cena_typ
  at 'CenaTyp'
end

#cena_typ_attributesObject



50
51
52
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 50

def cena_typ_attributes
  attributes_at 'CenaTyp'
end

#cenova_hladObject



86
87
88
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 86

def cenova_hlad
  at 'CenovaHlad'
end

#cenova_hlad_attributesObject



90
91
92
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 90

def cenova_hlad_attributes
  attributes_at 'CenovaHlad'
end

#cinnostObject



62
63
64
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 62

def cinnost
  at 'Cinnost'
end

#cinnost_attributesObject



66
67
68
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 66

def cinnost_attributes
  attributes_at 'Cinnost'
end

#dphObject



38
39
40
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 38

def dph
  at 'DPH'
end

#dph_attributesObject



42
43
44
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 42

def dph_attributes
  attributes_at 'DPH'
end

#hmotnostObject



142
143
144
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 142

def hmotnost
  at 'Hmotnost'
end

#hmotnost_attributesObject



146
147
148
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 146

def hmotnost_attributes
  attributes_at 'Hmotnost'
end

#km_kartaObject



202
203
204
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 202

def km_karta
  submodel_at(KmKartaType, 'KmKarta')
end

#kod_statu_puvObject



126
127
128
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 126

def kod_statu_puv
  at 'KodStatuPuv'
end

#kod_statu_puv_attributesObject



130
131
132
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 130

def kod_statu_puv_attributes
  attributes_at 'KodStatuPuv'
end

#nazevObject



6
7
8
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 6

def nazev
  at 'Nazev'
end

#nazev_attributesObject



10
11
12
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 10

def nazev_attributes
  attributes_at 'Nazev'
end

#pocet_mjObject



14
15
16
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 14

def pocet_mj
  at 'PocetMJ'
end

#pocet_mj_attributesObject



18
19
20
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 18

def pocet_mj_attributes
  attributes_at 'PocetMJ'
end

#poriz_cenaObject



150
151
152
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 150

def poriz_cena
  at 'PorizCena'
end

#poriz_cena_attributesObject



154
155
156
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 154

def poriz_cena_attributes
  attributes_at 'PorizCena'
end

#poznamkaObject



94
95
96
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 94

def poznamka
  at 'Poznamka'
end

#poznamka_attributesObject



98
99
100
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 98

def poznamka_attributes
  attributes_at 'Poznamka'
end

#rezim_eetObject



174
175
176
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 174

def rezim_eet
  at 'RezimEET'
end

#rezim_eet_attributesObject



178
179
180
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 178

def rezim_eet_attributes
  attributes_at 'RezimEET'
end

#seznam_dodavekObject



194
195
196
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 194

def seznam_dodavek
  array_of_at(DodavkaType, ['SeznamDodavek', 'Dodavka'])
end

#seznam_vcObject



190
191
192
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 190

def seznam_vc
  array_of_at(VyrobniCisloType, ['SeznamVC', 'VyrobniCislo'])
end

#skladObject



198
199
200
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 198

def sklad
  submodel_at(SkladType, 'Sklad')
end

#slevaObject



54
55
56
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 54

def sleva
  at 'Sleva'
end

#sleva_attributesObject



58
59
60
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 58

def sleva_attributes
  attributes_at 'Sleva'
end

#slozeniObject



206
207
208
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 206

def slozeni
  array_of_at(DefSubPolType, ['Slozeni', 'SubPolozka'])
end

#strediskoObject



78
79
80
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 78

def stredisko
  at 'Stredisko'
end

#stredisko_attributesObject



82
83
84
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 82

def stredisko_attributes
  attributes_at 'Stredisko'
end

#to_hObject



218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 218

def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:nazev] = nazev if has? 'Nazev'
  hash[:nazev_attributes] = nazev_attributes if has? 'Nazev'
  hash[:pocet_mj] = pocet_mj if has? 'PocetMJ'
  hash[:pocet_mj_attributes] = pocet_mj_attributes if has? 'PocetMJ'
  hash[:cena] = cena if has? 'Cena'
  hash[:cena_attributes] = cena_attributes if has? 'Cena'
  hash[:valuty] = valuty if has? 'Valuty'
  hash[:valuty_attributes] = valuty_attributes if has? 'Valuty'
  hash[:dph] = dph if has? 'DPH'
  hash[:dph_attributes] = dph_attributes if has? 'DPH'
  hash[:cena_typ] = cena_typ if has? 'CenaTyp'
  hash[:cena_typ_attributes] = cena_typ_attributes if has? 'CenaTyp'
  hash[:sleva] = sleva if has? 'Sleva'
  hash[:sleva_attributes] = sleva_attributes if has? 'Sleva'
  hash[:cinnost] = cinnost if has? 'Cinnost'
  hash[:cinnost_attributes] = cinnost_attributes if has? 'Cinnost'
  hash[:zakazka] = zakazka if has? 'Zakazka'
  hash[:zakazka_attributes] = zakazka_attributes if has? 'Zakazka'
  hash[:stredisko] = stredisko if has? 'Stredisko'
  hash[:stredisko_attributes] = stredisko_attributes if has? 'Stredisko'
  hash[:cenova_hlad] = cenova_hlad if has? 'CenovaHlad'
  hash[:cenova_hlad_attributes] = cenova_hlad_attributes if has? 'CenovaHlad'
  hash[:poznamka] = poznamka if has? 'Poznamka'
  hash[:poznamka_attributes] = poznamka_attributes if has? 'Poznamka'
  hash[:vratka] = vratka if has? 'Vratka'
  hash[:vratka_attributes] = vratka_attributes if has? 'Vratka'
  hash[:ucet_md] = ucet_md if has? 'UcetMD'
  hash[:ucet_md_attributes] = ucet_md_attributes if has? 'UcetMD'
  hash[:ucet_d] = ucet_d if has? 'UcetD'
  hash[:ucet_d_attributes] = ucet_d_attributes if has? 'UcetD'
  hash[:kod_statu_puv] = kod_statu_puv if has? 'KodStatuPuv'
  hash[:kod_statu_puv_attributes] = kod_statu_puv_attributes if has? 'KodStatuPuv'
  hash[:typ_transakce] = typ_transakce if has? 'TypTransakce'
  hash[:typ_transakce_attributes] = typ_transakce_attributes if has? 'TypTransakce'
  hash[:hmotnost] = hmotnost if has? 'Hmotnost'
  hash[:hmotnost_attributes] = hmotnost_attributes if has? 'Hmotnost'
  hash[:poriz_cena] = poriz_cena if has? 'PorizCena'
  hash[:poriz_cena_attributes] = poriz_cena_attributes if has? 'PorizCena'
  hash[:zvl_rezim] = zvl_rezim if has? 'ZvlRezim'
  hash[:zvl_rezim_attributes] = zvl_rezim_attributes if has? 'ZvlRezim'
  hash[:zvl_dph] = zvl_dph if has? 'ZvlDPH'
  hash[:zvl_dph_attributes] = zvl_dph_attributes if has? 'ZvlDPH'
  hash[:rezim_eet] = rezim_eet if has? 'RezimEET'
  hash[:rezim_eet_attributes] = rezim_eet_attributes if has? 'RezimEET'
  hash[:cena_po_sleve] = cena_po_sleve if has? 'CenaPoSleve'
  hash[:cena_po_sleve_attributes] = cena_po_sleve_attributes if has? 'CenaPoSleve'
  hash[:seznam_vc] = seznam_vc.map(&:to_h) if has? 'SeznamVC'
  hash[:seznam_dodavek] = seznam_dodavek.map(&:to_h) if has? 'SeznamDodavek'
  hash[:sklad] = sklad.to_h if has? 'Sklad'
  hash[:km_karta] = km_karta.to_h if has? 'KmKarta'
  hash[:slozeni] = slozeni.map(&:to_h) if has? 'Slozeni'
  hash[:uzivatelska_pole] = uzivatelska_pole if has? 'UzivatelskaPole'
  hash[:uzivatelska_pole_attributes] = uzivatelska_pole_attributes if has? 'UzivatelskaPole'

  hash
end

#typ_transakceObject



134
135
136
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 134

def typ_transakce
  at 'TypTransakce'
end

#typ_transakce_attributesObject



138
139
140
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 138

def typ_transakce_attributes
  attributes_at 'TypTransakce'
end

#ucet_dObject



118
119
120
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 118

def ucet_d
  at 'UcetD'
end

#ucet_d_attributesObject



122
123
124
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 122

def ucet_d_attributes
  attributes_at 'UcetD'
end

#ucet_mdObject



110
111
112
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 110

def ucet_md
  at 'UcetMD'
end

#ucet_md_attributesObject



114
115
116
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 114

def ucet_md_attributes
  attributes_at 'UcetMD'
end

#uzivatelska_poleObject



210
211
212
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 210

def uzivatelska_pole
  at 'UzivatelskaPole'
end

#uzivatelska_pole_attributesObject



214
215
216
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 214

def uzivatelska_pole_attributes
  attributes_at 'UzivatelskaPole'
end

#valutyObject



30
31
32
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 30

def valuty
  at 'Valuty'
end

#valuty_attributesObject



34
35
36
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 34

def valuty_attributes
  attributes_at 'Valuty'
end

#vratkaObject



102
103
104
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 102

def vratka
  at 'Vratka'
end

#vratka_attributesObject



106
107
108
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 106

def vratka_attributes
  attributes_at 'Vratka'
end

#zakazkaObject



70
71
72
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 70

def zakazka
  at 'Zakazka'
end

#zakazka_attributesObject



74
75
76
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 74

def zakazka_attributes
  attributes_at 'Zakazka'
end

#zvl_dphObject



166
167
168
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 166

def zvl_dph
  at 'ZvlDPH'
end

#zvl_dph_attributesObject



170
171
172
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 170

def zvl_dph_attributes
  attributes_at 'ZvlDPH'
end

#zvl_rezimObject



158
159
160
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 158

def zvl_rezim
  at 'ZvlRezim'
end

#zvl_rezim_attributesObject



162
163
164
# File 'lib/money_s3/parsers/pol_skl_dokl_type.rb', line 162

def zvl_rezim_attributes
  attributes_at 'ZvlRezim'
end