Class: MoneyS3::Parsers::RozuctPolozUDType

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

Instance Method Summary collapse

Instance Method Details

#adresaObject



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

def adresa
  submodel_at(FirmaType, 'Adresa')
end

#castkaObject



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

def castka
  at 'Castka'
end

#castka_attributesObject



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

def castka_attributes
  attributes_at 'Castka'
end

#cinnostObject



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

def cinnost
  at 'Cinnost'
end

#cinnost_attributesObject



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

def cinnost_attributes
  attributes_at 'Cinnost'
end

#icoObject



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

def ico
  at 'ICO'
end

#ico_attributesObject



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

def ico_attributes
  attributes_at 'ICO'
end

#par_icoObject



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

def par_ico
  at 'ParICO'
end

#par_ico_attributesObject



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

def par_ico_attributes
  attributes_at 'ParICO'
end

#par_symObject



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

def par_sym
  at 'ParSym'
end

#par_sym_attributesObject



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

def par_sym_attributes
  attributes_at 'ParSym'
end

#pohybObject



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

def pohyb
  at 'Pohyb'
end

#pohyb_attributesObject



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

def pohyb_attributes
  attributes_at 'Pohyb'
end

#popisObject



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

def popis
  at 'Popis'
end

#popis_attributesObject



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

def popis_attributes
  attributes_at 'Popis'
end

#poznObject



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

def pozn
  at 'Pozn'
end

#pozn_attributesObject



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

def pozn_attributes
  attributes_at 'Pozn'
end

#sazba_dphObject



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

def sazba_dph
  at 'SazbaDPH'
end

#sazba_dph_attributesObject



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

def sazba_dph_attributes
  attributes_at 'SazbaDPH'
end

#stredObject



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

def stred
  at 'Stred'
end

#stred_attributesObject



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

def stred_attributes
  attributes_at 'Stred'
end

#to_hObject



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'lib/money_s3/parsers/rozuct_poloz_ud_type.rb', line 130

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

  hash[:popis] = popis if has? 'Popis'
  hash[:popis_attributes] = popis_attributes if has? 'Popis'
  hash[:uc_md] = uc_md if has? 'UcMD'
  hash[:uc_md_attributes] = uc_md_attributes if has? 'UcMD'
  hash[:uc_d] = uc_d if has? 'UcD'
  hash[:uc_d_attributes] = uc_d_attributes if has? 'UcD'
  hash[:pohyb] = pohyb if has? 'Pohyb'
  hash[:pohyb_attributes] = pohyb_attributes if has? 'Pohyb'
  hash[:castka] = castka if has? 'Castka'
  hash[:castka_attributes] = castka_attributes if has? 'Castka'
  hash[:stred] = stred if has? 'Stred'
  hash[:stred_attributes] = stred_attributes if has? 'Stred'
  hash[:zakazka] = zakazka if has? 'Zakazka'
  hash[:zakazka_attributes] = zakazka_attributes if has? 'Zakazka'
  hash[:cinnost] = cinnost if has? 'Cinnost'
  hash[:cinnost_attributes] = cinnost_attributes if has? 'Cinnost'
  hash[:par_sym] = par_sym if has? 'ParSym'
  hash[:par_sym_attributes] = par_sym_attributes if has? 'ParSym'
  hash[:var_sym] = var_sym if has? 'VarSym'
  hash[:var_sym_attributes] = var_sym_attributes if has? 'VarSym'
  hash[:par_ico] = par_ico if has? 'ParICO'
  hash[:par_ico_attributes] = par_ico_attributes if has? 'ParICO'
  hash[:ico] = ico if has? 'ICO'
  hash[:ico_attributes] = ico_attributes if has? 'ICO'
  hash[:pozn] = pozn if has? 'Pozn'
  hash[:pozn_attributes] = pozn_attributes if has? 'Pozn'
  hash[:typ_cena] = typ_cena if has? 'TypCena'
  hash[:typ_cena_attributes] = typ_cena_attributes if has? 'TypCena'
  hash[:sazba_dph] = sazba_dph if has? 'SazbaDPH'
  hash[:sazba_dph_attributes] = sazba_dph_attributes if has? 'SazbaDPH'
  hash[:adresa] = adresa.to_h if has? 'Adresa'

  hash
end

#typ_cenaObject



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

def typ_cena
  at 'TypCena'
end

#typ_cena_attributesObject



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

def typ_cena_attributes
  attributes_at 'TypCena'
end

#uc_dObject



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

def uc_d
  at 'UcD'
end

#uc_d_attributesObject



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

def uc_d_attributes
  attributes_at 'UcD'
end

#uc_mdObject



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

def uc_md
  at 'UcMD'
end

#uc_md_attributesObject



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

def uc_md_attributes
  attributes_at 'UcMD'
end

#var_symObject



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

def var_sym
  at 'VarSym'
end

#var_sym_attributesObject



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

def var_sym_attributes
  attributes_at 'VarSym'
end

#zakazkaObject



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

def zakazka
  at 'Zakazka'
end

#zakazka_attributesObject



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

def zakazka_attributes
  attributes_at 'Zakazka'
end