Class: MoneyS3::Parsers::KmKartaType

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

Direct Known Subclasses

KmKarta

Instance Method Summary collapse

Instance Method Details

#bar_codeObject



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

def bar_code
  at 'BarCode'
end

#bar_code_attributesObject



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

def bar_code_attributes
  attributes_at 'BarCode'
end

#bc_typObject



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

def bc_typ
  at 'BCTyp'
end

#bc_typ_attributesObject



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

def bc_typ_attributes
  attributes_at 'BCTyp'
end

#cenyObject



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

def ceny
  at 'Ceny'
end

#ceny_attributesObject



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

def ceny_attributes
  attributes_at 'Ceny'
end

#definice_cenyObject



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

def definice_ceny
  submodel_at(DefiniceCeny, 'definiceCeny')
end

#des_mistObject



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

def des_mist
  at 'DesMist'
end

#des_mist_attributesObject



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

def des_mist_attributes
  attributes_at 'DesMist'
end

#dokumentyObject



278
279
280
# File 'lib/money_s3/parsers/km_karta_type.rb', line 278

def dokumenty
  array_of_at(String, ['Dokumenty', 'Dokument'])
end

#ev_vyr_cisObject



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

def ev_vyr_cis
  at 'EvVyrCis'
end

#ev_vyr_cis_attributesObject



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

def ev_vyr_cis_attributes
  attributes_at 'EvVyrCis'
end

#guidObject



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

def guid
  at 'GUID'
end

#guid_attributesObject



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

def guid_attributes
  attributes_at 'GUID'
end

#hmotnostObject



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

def hmotnost
  at 'Hmotnost'
end

#hmotnost_attributesObject



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

def hmotnost_attributes
  attributes_at 'Hmotnost'
end

#i_dokl_agendObject



262
263
264
# File 'lib/money_s3/parsers/km_karta_type.rb', line 262

def i_dokl_agend
  at 'iDoklAgend'
end

#i_dokl_agend_attributesObject



266
267
268
# File 'lib/money_s3/parsers/km_karta_type.rb', line 266

def i_dokl_agend_attributes
  attributes_at 'iDoklAgend'
end

#i_dokl_polObject



254
255
256
# File 'lib/money_s3/parsers/km_karta_type.rb', line 254

def i_dokl_pol
  at 'iDoklPol'
end

#i_dokl_pol_attributesObject



258
259
260
# File 'lib/money_s3/parsers/km_karta_type.rb', line 258

def i_dokl_pol_attributes
  attributes_at 'iDoklPol'
end

#katalogObject



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

def katalog
  at 'Katalog'
end

#katalog_attributesObject



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

def katalog_attributes
  attributes_at 'Katalog'
end

#kod_knObject



222
223
224
# File 'lib/money_s3/parsers/km_karta_type.rb', line 222

def kod_kn
  at 'KodKN'
end

#kod_kn_attributesObject



226
227
228
# File 'lib/money_s3/parsers/km_karta_type.rb', line 226

def kod_kn_attributes
  attributes_at 'KodKN'
end

#kod_statuObject



238
239
240
# File 'lib/money_s3/parsers/km_karta_type.rb', line 238

def kod_statu
  at 'KodStatu'
end

#kod_statu_attributesObject



242
243
244
# File 'lib/money_s3/parsers/km_karta_type.rb', line 242

def kod_statu_attributes
  attributes_at 'KodStatu'
end

#konfiguraceObject



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

def konfigurace
  submodel_at(Konfigurace, 'konfigurace')
end

#mjObject



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

def mj
  at 'MJ'
end

#mj_attributesObject



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

def mj_attributes
  attributes_at 'MJ'
end

#nastavObject



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

def nastav
  at 'Nastav'
end

#nastav_attributesObject



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

def nastav_attributes
  attributes_at 'Nastav'
end

#objemObject



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

def objem
  at 'Objem'
end

#objem_attributesObject



218
219
220
# File 'lib/money_s3/parsers/km_karta_type.rb', line 218

def objem_attributes
  attributes_at 'Objem'
end

#obrazekObject



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

def obrazek
  at 'Obrazek'
end

#obrazek2Object



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

def obrazek2
  at 'Obrazek2'
end

#obrazek2_attributesObject



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

def obrazek2_attributes
  attributes_at 'Obrazek2'
end

#obrazek_attributesObject



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

def obrazek_attributes
  attributes_at 'Obrazek'
end

#popisObject



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

def popis
  at 'Popis'
end

#popis1Object



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

def popis1
  at 'Popis1'
end

#popis1_attributesObject



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

def popis1_attributes
  attributes_at 'Popis1'
end

#popis2Object



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

def popis2
  at 'Popis2'
end

#popis2_attributesObject



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

def popis2_attributes
  attributes_at 'Popis2'
end

#popis3Object



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

def popis3
  at 'Popis3'
end

#popis3_attributesObject



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

def popis3_attributes
  attributes_at 'Popis3'
end

#popis_attributesObject



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

def popis_attributes
  attributes_at 'Popis'
end

#poznObject



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

def pozn
  at 'Pozn'
end

#pozn1Object



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

def pozn1
  at 'Pozn1'
end

#pozn1_attributesObject



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

def pozn1_attributes
  attributes_at 'Pozn1'
end

#pozn2Object



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

def pozn2
  at 'Pozn2'
end

#pozn2_attributesObject



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

def pozn2_attributes
  attributes_at 'Pozn2'
end

#pozn3Object



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

def pozn3
  at 'Pozn3'
end

#pozn3_attributesObject



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

def pozn3_attributes
  attributes_at 'Pozn3'
end

#pozn_attributesObject



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

def pozn_attributes
  attributes_at 'Pozn'
end

#predm_plnObject



230
231
232
# File 'lib/money_s3/parsers/km_karta_type.rb', line 230

def predm_pln
  at 'PredmPln'
end

#predm_pln_attributesObject



234
235
236
# File 'lib/money_s3/parsers/km_karta_type.rb', line 234

def predm_pln_attributes
  attributes_at 'PredmPln'
end

#seznam_parametru_kartyObject



274
275
276
# File 'lib/money_s3/parsers/km_karta_type.rb', line 274

def seznam_parametru_karty
  array_of_at(ParametrKartaType, ['SeznamParametruKarty', 'ParametrKarty'])
end

#slozeniObject



270
271
272
# File 'lib/money_s3/parsers/km_karta_type.rb', line 270

def slozeni
  array_of_at(KomponentaType, ['Slozeni', 'Komponenta'])
end

#to_hObject



282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
# File 'lib/money_s3/parsers/km_karta_type.rb', line 282

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

  hash[:popis] = popis if has? 'Popis'
  hash[:popis_attributes] = popis_attributes if has? 'Popis'
  hash[:zkrat] = zkrat if has? 'Zkrat'
  hash[:zkrat_attributes] = zkrat_attributes if has? 'Zkrat'
  hash[:pozn] = pozn if has? 'Pozn'
  hash[:pozn_attributes] = pozn_attributes if has? 'Pozn'
  hash[:mj] = mj if has? 'MJ'
  hash[:mj_attributes] = mj_attributes if has? 'MJ'
  hash[:uziv_code] = uziv_code if has? 'UzivCode'
  hash[:uziv_code_attributes] = uziv_code_attributes if has? 'UzivCode'
  hash[:guid] = guid if has? 'GUID'
  hash[:guid_attributes] = guid_attributes if has? 'GUID'
  hash[:katalog] = katalog if has? 'Katalog'
  hash[:katalog_attributes] = katalog_attributes if has? 'Katalog'
  hash[:bar_code] = bar_code if has? 'BarCode'
  hash[:bar_code_attributes] = bar_code_attributes if has? 'BarCode'
  hash[:bc_typ] = bc_typ if has? 'BCTyp'
  hash[:bc_typ_attributes] = bc_typ_attributes if has? 'BCTyp'
  hash[:typ_zar_doby] = typ_zar_doby if has? 'TypZarDoby'
  hash[:typ_zar_doby_attributes] = typ_zar_doby_attributes if has? 'TypZarDoby'
  hash[:zar_doba] = zar_doba if has? 'ZarDoba'
  hash[:zar_doba_attributes] = zar_doba_attributes if has? 'ZarDoba'
  hash[:zboz_kuch] = zboz_kuch if has? 'ZbozKuch'
  hash[:zboz_kuch_attributes] = zboz_kuch_attributes if has? 'ZbozKuch'
  hash[:ev_vyr_cis] = ev_vyr_cis if has? 'EvVyrCis'
  hash[:ev_vyr_cis_attributes] = ev_vyr_cis_attributes if has? 'EvVyrCis'
  hash[:des_mist] = des_mist if has? 'DesMist'
  hash[:des_mist_attributes] = des_mist_attributes if has? 'DesMist'
  hash[:obrazek] = obrazek if has? 'Obrazek'
  hash[:obrazek_attributes] = obrazek_attributes if has? 'Obrazek'
  hash[:obrazek2] = obrazek2 if has? 'Obrazek2'
  hash[:obrazek2_attributes] = obrazek2_attributes if has? 'Obrazek2'
  hash[:konfigurace] = konfigurace.to_h if has? 'konfigurace'
  hash[:definice_ceny] = definice_ceny.to_h if has? 'definiceCeny'
  hash[:ceny] = ceny if has? 'Ceny'
  hash[:ceny_attributes] = ceny_attributes if has? 'Ceny'
  hash[:nastav] = nastav if has? 'Nastav'
  hash[:nastav_attributes] = nastav_attributes if has? 'Nastav'
  hash[:popis1] = popis1 if has? 'Popis1'
  hash[:popis1_attributes] = popis1_attributes if has? 'Popis1'
  hash[:pozn1] = pozn1 if has? 'Pozn1'
  hash[:pozn1_attributes] = pozn1_attributes if has? 'Pozn1'
  hash[:popis2] = popis2 if has? 'Popis2'
  hash[:popis2_attributes] = popis2_attributes if has? 'Popis2'
  hash[:pozn2] = pozn2 if has? 'Pozn2'
  hash[:pozn2_attributes] = pozn2_attributes if has? 'Pozn2'
  hash[:popis3] = popis3 if has? 'Popis3'
  hash[:popis3_attributes] = popis3_attributes if has? 'Popis3'
  hash[:pozn3] = pozn3 if has? 'Pozn3'
  hash[:pozn3_attributes] = pozn3_attributes if has? 'Pozn3'
  hash[:hmotnost] = hmotnost if has? 'Hmotnost'
  hash[:hmotnost_attributes] = hmotnost_attributes if has? 'Hmotnost'
  hash[:objem] = objem if has? 'Objem'
  hash[:objem_attributes] = objem_attributes if has? 'Objem'
  hash[:kod_kn] = kod_kn if has? 'KodKN'
  hash[:kod_kn_attributes] = kod_kn_attributes if has? 'KodKN'
  hash[:predm_pln] = predm_pln if has? 'PredmPln'
  hash[:predm_pln_attributes] = predm_pln_attributes if has? 'PredmPln'
  hash[:kod_statu] = kod_statu if has? 'KodStatu'
  hash[:kod_statu_attributes] = kod_statu_attributes if has? 'KodStatu'
  hash[:typ_karty] = typ_karty if has? 'TypKarty'
  hash[:typ_karty_attributes] = typ_karty_attributes if has? 'TypKarty'
  hash[:i_dokl_pol] = i_dokl_pol if has? 'iDoklPol'
  hash[:i_dokl_pol_attributes] = i_dokl_pol_attributes if has? 'iDoklPol'
  hash[:i_dokl_agend] = i_dokl_agend if has? 'iDoklAgend'
  hash[:i_dokl_agend_attributes] = i_dokl_agend_attributes if has? 'iDoklAgend'
  hash[:slozeni] = slozeni.map(&:to_h) if has? 'Slozeni'
  hash[:seznam_parametru_karty] = seznam_parametru_karty.map(&:to_h) if has? 'SeznamParametruKarty'
  hash[:dokumenty] = dokumenty if has? 'Dokumenty'

  hash
end

#typ_kartyObject



246
247
248
# File 'lib/money_s3/parsers/km_karta_type.rb', line 246

def typ_karty
  at 'TypKarty'
end

#typ_karty_attributesObject



250
251
252
# File 'lib/money_s3/parsers/km_karta_type.rb', line 250

def typ_karty_attributes
  attributes_at 'TypKarty'
end

#typ_zar_dobyObject



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

def typ_zar_doby
  at 'TypZarDoby'
end

#typ_zar_doby_attributesObject



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

def typ_zar_doby_attributes
  attributes_at 'TypZarDoby'
end

#uziv_codeObject



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

def uziv_code
  at 'UzivCode'
end

#uziv_code_attributesObject



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

def uziv_code_attributes
  attributes_at 'UzivCode'
end

#zar_dobaObject



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

def zar_doba
  at 'ZarDoba'
end

#zar_doba_attributesObject



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

def zar_doba_attributes
  attributes_at 'ZarDoba'
end

#zboz_kuchObject



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

def zboz_kuch
  at 'ZbozKuch'
end

#zboz_kuch_attributesObject



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

def zboz_kuch_attributes
  attributes_at 'ZbozKuch'
end

#zkratObject



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

def zkrat
  at 'Zkrat'
end

#zkrat_attributesObject



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

def zkrat_attributes
  attributes_at 'Zkrat'
end