Class: MoneyS3::Parsers::RozuctPolozIDType

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

Instance Method Summary collapse

Instance Method Details

#adresaObject



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

def adresa
  submodel_at(FirmaType, 'Adresa')
end

#castkaObject



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

def castka
  at 'Castka'
end

#castka_attributesObject



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

def castka_attributes
  attributes_at 'Castka'
end

#cinnostObject



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

def cinnost
  at 'Cinnost'
end

#cinnost_attributesObject



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

def cinnost_attributes
  attributes_at 'Cinnost'
end

#par_icoObject



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

def par_ico
  at 'ParICO'
end

#par_ico_attributesObject



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

def par_ico_attributes
  attributes_at 'ParICO'
end

#par_symObject



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

def par_sym
  at 'ParSym'
end

#par_sym_attributesObject



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

def par_sym_attributes
  attributes_at 'ParSym'
end

#popisObject



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

def popis
  at 'Popis'
end

#popis_attributesObject



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

def popis_attributes
  attributes_at 'Popis'
end

#poznObject



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

def pozn
  at 'Pozn'
end

#pozn_attributesObject



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

def pozn_attributes
  attributes_at 'Pozn'
end

#sazba_dphObject



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

def sazba_dph
  at 'SazbaDPH'
end

#sazba_dph_attributesObject



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

def sazba_dph_attributes
  attributes_at 'SazbaDPH'
end

#stredObject



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

def stred
  at 'Stred'
end

#stred_attributesObject



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

def stred_attributes
  attributes_at 'Stred'
end

#to_hObject



106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/money_s3/parsers/rozuct_poloz_id_type.rb', line 106

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[: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[:par_ico] = par_ico if has? 'ParICO'
  hash[:par_ico_attributes] = par_ico_attributes if has? 'ParICO'
  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



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

def typ_cena
  at 'TypCena'
end

#typ_cena_attributesObject



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

def typ_cena_attributes
  attributes_at 'TypCena'
end

#uc_dObject



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

def uc_d
  at 'UcD'
end

#uc_d_attributesObject



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

def uc_d_attributes
  attributes_at 'UcD'
end

#uc_mdObject



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

def uc_md
  at 'UcMD'
end

#uc_md_attributesObject



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

def uc_md_attributes
  attributes_at 'UcMD'
end

#zakazkaObject



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

def zakazka
  at 'Zakazka'
end

#zakazka_attributesObject



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

def zakazka_attributes
  attributes_at 'Zakazka'
end