Class: MoneyS3::Parsers::PolFakturyType

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

Instance Method Summary collapse

Instance Method Details

#cenaObject



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

def cena
  at 'Cena'
end

#cena_attributesObject



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

def cena_attributes
  attributes_at 'Cena'
end

#cena_po_sleveObject



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

def cena_po_sleve
  at 'CenaPoSleve'
end

#cena_po_sleve_attributesObject



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

def cena_po_sleve_attributes
  attributes_at 'CenaPoSleve'
end

#cena_typObject



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

def cena_typ
  at 'CenaTyp'
end

#cena_typ_attributesObject



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

def cena_typ_attributes
  attributes_at 'CenaTyp'
end

#cinnostObject



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

def cinnost
  at 'Cinnost'
end

#cinnost_attributesObject



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

def cinnost_attributes
  attributes_at 'Cinnost'
end

#kod_dphObject



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

def kod_dph
  at 'KodDPH'
end

#kod_dph_attributesObject



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

def kod_dph_attributes
  attributes_at 'KodDPH'
end

#neskl_polozkaObject



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

def neskl_polozka
  submodel_at(NesklPolozka, 'NesklPolozka')
end

#pocet_mjObject



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

def pocet_mj
  at 'PocetMJ'
end

#pocet_mj_attributesObject



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

def pocet_mj_attributes
  attributes_at 'PocetMJ'
end

#popisObject



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

def popis
  at 'Popis'
end

#popis_attributesObject



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

def popis_attributes
  attributes_at 'Popis'
end

#poradiObject



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

def poradi
  at 'Poradi'
end

#poradi_attributesObject



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

def poradi_attributes
  attributes_at 'Poradi'
end

#poznamkaObject



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

def poznamka
  at 'Poznamka'
end

#poznamka_attributesObject



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

def poznamka_attributes
  attributes_at 'Poznamka'
end

#predkontacObject



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

def predkontac
  at 'Predkontac'
end

#predkontac_attributesObject



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

def predkontac_attributes
  attributes_at 'Predkontac'
end

#rezim_eetObject



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

def rezim_eet
  at 'RezimEET'
end

#rezim_eet_attributesObject



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

def rezim_eet_attributes
  attributes_at 'RezimEET'
end

#sazba_dphObject



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

def sazba_dph
  at 'SazbaDPH'
end

#sazba_dph_attributesObject



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

def sazba_dph_attributes
  attributes_at 'SazbaDPH'
end

#seznam_vazebObject



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

def seznam_vazeb
  submodel_at(SeznamVazeb, 'SeznamVazeb')
end

#skl_polozkaObject



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

def skl_polozka
  submodel_at(PolSklDoklType, 'SklPolozka')
end

#slevaObject



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

def sleva
  at 'Sleva'
end

#sleva_attributesObject



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

def sleva_attributes
  attributes_at 'Sleva'
end

#souhrn_dphObject



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

def souhrn_dph
  submodel_at(SouhrnDPHPolType, 'SouhrnDPH')
end

#strediskoObject



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

def stredisko
  at 'Stredisko'
end

#stredisko_attributesObject



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

def stredisko_attributes
  attributes_at 'Stredisko'
end

#to_hObject



166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# File 'lib/money_s3/parsers/pol_faktury_type.rb', line 166

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

  hash[:popis] = popis if has? 'Popis'
  hash[:popis_attributes] = popis_attributes if has? 'Popis'
  hash[:poznamka] = poznamka if has? 'Poznamka'
  hash[:poznamka_attributes] = poznamka_attributes if has? 'Poznamka'
  hash[:pocet_mj] = pocet_mj if has? 'PocetMJ'
  hash[:pocet_mj_attributes] = pocet_mj_attributes if has? 'PocetMJ'
  hash[:sazba_dph] = sazba_dph if has? 'SazbaDPH'
  hash[:sazba_dph_attributes] = sazba_dph_attributes if has? 'SazbaDPH'
  hash[:cena] = cena if has? 'Cena'
  hash[:cena_attributes] = cena_attributes if has? 'Cena'
  hash[:souhrn_dph] = souhrn_dph.to_h if has? 'SouhrnDPH'
  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[:poradi] = poradi if has? 'Poradi'
  hash[:poradi_attributes] = poradi_attributes if has? 'Poradi'
  hash[:kod_dph] = kod_dph if has? 'KodDPH'
  hash[:kod_dph_attributes] = kod_dph_attributes if has? 'KodDPH'
  hash[:stredisko] = stredisko if has? 'Stredisko'
  hash[:stredisko_attributes] = stredisko_attributes if has? 'Stredisko'
  hash[:zakazka] = zakazka if has? 'Zakazka'
  hash[:zakazka_attributes] = zakazka_attributes if has? 'Zakazka'
  hash[:predkontac] = predkontac if has? 'Predkontac'
  hash[:predkontac_attributes] = predkontac_attributes if has? 'Predkontac'
  hash[:valuty] = valuty if has? 'Valuty'
  hash[:valuty_attributes] = valuty_attributes if has? 'Valuty'
  hash[:neskl_polozka] = neskl_polozka.to_h if has? 'NesklPolozka'
  hash[:cena_po_sleve] = cena_po_sleve if has? 'CenaPoSleve'
  hash[:cena_po_sleve_attributes] = cena_po_sleve_attributes if has? 'CenaPoSleve'
  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[:skl_polozka] = skl_polozka.to_h if has? 'SklPolozka'
  hash[:seznam_vazeb] = seznam_vazeb.to_h if has? 'SeznamVazeb'

  hash
end

#valutyObject



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

def valuty
  at 'Valuty'
end

#valuty_attributesObject



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

def valuty_attributes
  attributes_at 'Valuty'
end

#zakazkaObject



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

def zakazka
  at 'Zakazka'
end

#zakazka_attributesObject



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

def zakazka_attributes
  attributes_at 'Zakazka'
end

#zvl_dphObject



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

def zvl_dph
  at 'ZvlDPH'
end

#zvl_dph_attributesObject



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

def zvl_dph_attributes
  attributes_at 'ZvlDPH'
end

#zvl_rezimObject



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

def zvl_rezim
  at 'ZvlRezim'
end

#zvl_rezim_attributesObject



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

def zvl_rezim_attributes
  attributes_at 'ZvlRezim'
end