Class: MoneyS3::Parsers::NesklPolozka

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

Instance Method Summary collapse

Instance Method Details

#bar_codeObject



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

def bar_code
  at 'BarCode'
end

#bar_code_attributesObject



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

def bar_code_attributes
  attributes_at 'BarCode'
end

#dat_expObject



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

def dat_exp
  at 'DatExp'
end

#dat_exp_attributesObject



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

def dat_exp_attributes
  attributes_at 'DatExp'
end

#dat_nakupuObject



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

def dat_nakupu
  at 'DatNakupu'
end

#dat_nakupu_attributesObject



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

def dat_nakupu_attributes
  attributes_at 'DatNakupu'
end

#dodavatelObject



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

def dodavatel
  submodel_at(FirmaType, 'Dodavatel')
end

#hmotnostObject



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

def hmotnost
  at 'Hmotnost'
end

#hmotnost_attributesObject



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

def hmotnost_attributes
  attributes_at 'Hmotnost'
end

#katalogObject



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

def katalog
  at 'Katalog'
end

#katalog_attributesObject



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

def katalog_attributes
  attributes_at 'Katalog'
end

#konec_odpocetObject



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

def konec_odpocet
  at 'KonecOdpocet'
end

#konec_odpocet_attributesObject



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

def konec_odpocet_attributes
  attributes_at 'KonecOdpocet'
end

#mjObject



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

def mj
  at 'MJ'
end

#mj_attributesObject



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

def mj_attributes
  attributes_at 'MJ'
end

#plneno_dphObject



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

def plneno_dph
  at 'PlnenoDPH'
end

#plneno_dph_attributesObject



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

def plneno_dph_attributes
  attributes_at 'PlnenoDPH'
end

#predm_plnObject



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

def predm_pln
  at 'PredmPln'
end

#predm_pln_attributesObject



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

def predm_pln_attributes
  attributes_at 'PredmPln'
end

#protizapisObject



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

def protizapis
  at 'Protizapis'
end

#protizapis_attributesObject



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

def protizapis_attributes
  attributes_at 'Protizapis'
end

#to_hObject



146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'lib/money_s3/parsers/neskl_polozka.rb', line 146

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

  hash[:mj] = mj if has? 'MJ'
  hash[:mj_attributes] = mj_attributes if has? 'MJ'
  hash[:katalog] = katalog if has? 'Katalog'
  hash[:katalog_attributes] = katalog_attributes if has? 'Katalog'
  hash[:zaloha] = zaloha if has? 'Zaloha'
  hash[:zaloha_attributes] = zaloha_attributes if has? 'Zaloha'
  hash[:zdan_zaloha] = zdan_zaloha if has? 'ZdanZaloha'
  hash[:zdan_zaloha_attributes] = zdan_zaloha_attributes if has? 'ZdanZaloha'
  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[:protizapis] = protizapis if has? 'Protizapis'
  hash[:protizapis_attributes] = protizapis_attributes if has? 'Protizapis'
  hash[:bar_code] = bar_code if has? 'BarCode'
  hash[:bar_code_attributes] = bar_code_attributes if has? 'BarCode'
  hash[:zkrat] = zkrat if has? 'Zkrat'
  hash[:zkrat_attributes] = zkrat_attributes if has? 'Zkrat'
  hash[:uziv_code] = uziv_code if has? 'UzivCode'
  hash[:uziv_code_attributes] = uziv_code_attributes if has? 'UzivCode'
  hash[:hmotnost] = hmotnost if has? 'Hmotnost'
  hash[:hmotnost_attributes] = hmotnost_attributes if has? 'Hmotnost'
  hash[:plneno_dph] = plneno_dph if has? 'PlnenoDPH'
  hash[:plneno_dph_attributes] = plneno_dph_attributes if has? 'PlnenoDPH'
  hash[:konec_odpocet] = konec_odpocet if has? 'KonecOdpocet'
  hash[:konec_odpocet_attributes] = konec_odpocet_attributes if has? 'KonecOdpocet'
  hash[:vyrobni_cis] = vyrobni_cis if has? 'VyrobniCis'
  hash[:vyrobni_cis_attributes] = vyrobni_cis_attributes if has? 'VyrobniCis'
  hash[:dat_exp] = dat_exp if has? 'DatExp'
  hash[:dat_exp_attributes] = dat_exp_attributes if has? 'DatExp'
  hash[:dat_nakupu] = dat_nakupu if has? 'DatNakupu'
  hash[:dat_nakupu_attributes] = dat_nakupu_attributes if has? 'DatNakupu'
  hash[:dodavatel] = dodavatel.to_h if has? 'Dodavatel'
  hash[:predm_pln] = predm_pln if has? 'PredmPln'
  hash[:predm_pln_attributes] = predm_pln_attributes if has? 'PredmPln'

  hash
end

#typ_zar_dobyObject



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

def typ_zar_doby
  at 'TypZarDoby'
end

#typ_zar_doby_attributesObject



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

def typ_zar_doby_attributes
  attributes_at 'TypZarDoby'
end

#uziv_codeObject



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

def uziv_code
  at 'UzivCode'
end

#uziv_code_attributesObject



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

def uziv_code_attributes
  attributes_at 'UzivCode'
end

#vyrobni_cisObject



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

def vyrobni_cis
  at 'VyrobniCis'
end

#vyrobni_cis_attributesObject



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

def vyrobni_cis_attributes
  attributes_at 'VyrobniCis'
end

#zalohaObject



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

def zaloha
  at 'Zaloha'
end

#zaloha_attributesObject



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

def zaloha_attributes
  attributes_at 'Zaloha'
end

#zar_dobaObject



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

def zar_doba
  at 'ZarDoba'
end

#zar_doba_attributesObject



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

def zar_doba_attributes
  attributes_at 'ZarDoba'
end

#zdan_zalohaObject



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

def zdan_zaloha
  at 'ZdanZaloha'
end

#zdan_zaloha_attributesObject



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

def zdan_zaloha_attributes
  attributes_at 'ZdanZaloha'
end

#zkratObject



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

def zkrat
  at 'Zkrat'
end

#zkrat_attributesObject



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

def zkrat_attributes
  attributes_at 'Zkrat'
end