Class: MoneyS3::Parsers::UhradaType

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

Instance Method Summary collapse

Instance Method Details

#castkaObject



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

def castka
  at 'Castka'
end

#castka_attributesObject



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

def castka_attributes
  attributes_at 'Castka'
end

#dat_upl_dphObject



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

def dat_upl_dph
  at 'DatUplDPH'
end

#dat_upl_dph_attributesObject



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

def dat_upl_dph_attributes
  attributes_at 'DatUplDPH'
end

#datumObject



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

def datum
  at 'Datum'
end

#datum_attributesObject



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

def datum_attributes
  attributes_at 'Datum'
end

#doklad_hrazObject



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

def doklad_hraz
  submodel_at(DokladHraz, 'DokladHraz')
end

#doklad_uhrObject



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

def doklad_uhr
  submodel_at(DoklRefType, 'DokladUhr')
end

#kurz_rozdObject



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

def kurz_rozd
  submodel_at(KurzRozd, 'KurzRozd')
end

#platidloObject



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

def platidlo
  at 'Platidlo'
end

#platidlo_attributesObject



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

def platidlo_attributes
  attributes_at 'Platidlo'
end

#poradiObject



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

def poradi
  at 'Poradi'
end

#poradi_attributesObject



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

def poradi_attributes
  attributes_at 'Poradi'
end

#prijemObject



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

def prijem
  at 'Prijem'
end

#prijem_attributesObject



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

def prijem_attributes
  attributes_at 'Prijem'
end

#rok_poradiObject



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

def rok_poradi
  at 'RokPoradi'
end

#rok_poradi_attributesObject



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

def rok_poradi_attributes
  attributes_at 'RokPoradi'
end

#seznam_pd_uhradObject



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

def seznam_pd_uhrad
  array_of_at(UhradaPduhrada, ['SeznamPDUhrad', 'Uhrada_PDUhrada'])
end

#to_hObject



94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# File 'lib/money_s3/parsers/uhrada_type.rb', line 94

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

  hash[:doklad_uhr] = doklad_uhr.to_h if has? 'DokladUhr'
  hash[:doklad_hraz] = doklad_hraz.to_h if has? 'DokladHraz'
  hash[:prijem] = prijem if has? 'Prijem'
  hash[:prijem_attributes] = prijem_attributes if has? 'Prijem'
  hash[:poradi] = poradi if has? 'Poradi'
  hash[:poradi_attributes] = poradi_attributes if has? 'Poradi'
  hash[:rok_poradi] = rok_poradi if has? 'RokPoradi'
  hash[:rok_poradi_attributes] = rok_poradi_attributes if has? 'RokPoradi'
  hash[:datum] = datum if has? 'Datum'
  hash[:datum_attributes] = datum_attributes if has? 'Datum'
  hash[:dat_upl_dph] = dat_upl_dph if has? 'DatUplDPH'
  hash[:dat_upl_dph_attributes] = dat_upl_dph_attributes if has? 'DatUplDPH'
  hash[:castka] = castka if has? 'Castka'
  hash[:castka_attributes] = castka_attributes if has? 'Castka'
  hash[:valuty_hraz] = valuty_hraz.to_h if has? 'ValutyHraz'
  hash[:valuty_uhr] = valuty_uhr.to_h if has? 'ValutyUhr'
  hash[:kurz_rozd] = kurz_rozd.to_h if has? 'KurzRozd'
  hash[:zpusob_uhr] = zpusob_uhr if has? 'ZpusobUhr'
  hash[:zpusob_uhr_attributes] = zpusob_uhr_attributes if has? 'ZpusobUhr'
  hash[:platidlo] = platidlo if has? 'Platidlo'
  hash[:platidlo_attributes] = platidlo_attributes if has? 'Platidlo'
  hash[:seznam_pd_uhrad] = seznam_pd_uhrad.map(&:to_h) if has? 'SeznamPDUhrad'

  hash
end

#valuty_hrazObject



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

def valuty_hraz
  submodel_at(ValutyHraz, 'ValutyHraz')
end

#valuty_uhrObject



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

def valuty_uhr
  submodel_at(ValutyUhr, 'ValutyUhr')
end

#zpusob_uhrObject



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

def zpusob_uhr
  at 'ZpusobUhr'
end

#zpusob_uhr_attributesObject



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

def zpusob_uhr_attributes
  attributes_at 'ZpusobUhr'
end