Class: MoneyS3::Parsers::OsobaType

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

Instance Method Summary collapse

Instance Method Details

#adresaObject



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

def adresa
  submodel_at(AdresaType, 'Adresa')
end

#dat_narObject



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

def dat_nar
  at 'DatNar'
end

#dat_nar_attributesObject



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

def dat_nar_attributes
  attributes_at 'DatNar'
end

#e_mailObject



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

def e_mail
  at 'EMail'
end

#e_mail_attributesObject



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

def e_mail_attributes
  attributes_at 'EMail'
end

#faxObject



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

def fax
  submodel_at(TelefonType, 'Fax')
end

#funkceObject



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

def funkce
  at 'Funkce'
end

#funkce_attributesObject



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

def funkce_attributes
  attributes_at 'Funkce'
end

#guidObject



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

def guid
  at 'GUID'
end

#guid_attributesObject



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

def guid_attributes
  attributes_at 'GUID'
end

#jednatelObject



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

def jednatel
  at 'Jednatel'
end

#jednatel_attributesObject



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

def jednatel_attributes
  attributes_at 'Jednatel'
end

#jmenoObject



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

def jmeno
  at 'Jmeno'
end

#jmeno_attributesObject



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

def jmeno_attributes
  attributes_at 'Jmeno'
end

#kod_partnObject



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

def kod_partn
  at 'KodPartn'
end

#kod_partn_attributesObject



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

def kod_partn_attributes
  attributes_at 'KodPartn'
end

#mailObject



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

def mail
  at 'Mail'
end

#mail_attributesObject



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

def mail_attributes
  attributes_at 'Mail'
end

#mail_datumObject



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

def mail_datum
  at 'MailDatum'
end

#mail_datum_attributesObject



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

def mail_datum_attributes
  attributes_at 'MailDatum'
end

#mobilObject



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

def mobil
  submodel_at(TelefonType, 'Mobil')
end

#osloveniObject



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

def osloveni
  at 'Osloveni'
end

#osloveni_attributesObject



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

def osloveni_attributes
  attributes_at 'Osloveni'
end

#pohlaviObject



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

def pohlavi
  at 'Pohlavi'
end

#pohlavi_attributesObject



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

def pohlavi_attributes
  attributes_at 'Pohlavi'
end

#poznObject



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

def pozn
  at 'Pozn'
end

#pozn_attributesObject



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

def pozn_attributes
  attributes_at 'Pozn'
end

#prijmeniObject



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

def prijmeni
  at 'Prijmeni'
end

#prijmeni_attributesObject



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

def prijmeni_attributes
  attributes_at 'Prijmeni'
end

#spojeniObject



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

def spojeni
  at 'Spojeni'
end

#spojeni_attributesObject



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

def spojeni_attributes
  attributes_at 'Spojeni'
end

#telObject



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

def tel
  submodel_at(TelefonType, 'Tel')
end

#titul_predObject



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

def titul_pred
  at 'TitulPred'
end

#titul_pred_attributesObject



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

def titul_pred_attributes
  attributes_at 'TitulPred'
end

#titul_zaObject



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

def titul_za
  at 'TitulZa'
end

#titul_za_attributesObject



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

def titul_za_attributes
  attributes_at 'TitulZa'
end

#to_hObject



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
188
189
190
191
192
# File 'lib/money_s3/parsers/osoba_type.rb', line 150

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

  hash[:osloveni] = osloveni if has? 'Osloveni'
  hash[:osloveni_attributes] = osloveni_attributes if has? 'Osloveni'
  hash[:titul_pred] = titul_pred if has? 'TitulPred'
  hash[:titul_pred_attributes] = titul_pred_attributes if has? 'TitulPred'
  hash[:titul_za] = titul_za if has? 'TitulZa'
  hash[:titul_za_attributes] = titul_za_attributes if has? 'TitulZa'
  hash[:jmeno] = jmeno if has? 'Jmeno'
  hash[:jmeno_attributes] = jmeno_attributes if has? 'Jmeno'
  hash[:prijmeni] = prijmeni if has? 'Prijmeni'
  hash[:prijmeni_attributes] = prijmeni_attributes if has? 'Prijmeni'
  hash[:dat_nar] = dat_nar if has? 'DatNar'
  hash[:dat_nar_attributes] = dat_nar_attributes if has? 'DatNar'
  hash[:pohlavi] = pohlavi if has? 'Pohlavi'
  hash[:pohlavi_attributes] = pohlavi_attributes if has? 'Pohlavi'
  hash[:funkce] = funkce if has? 'Funkce'
  hash[:funkce_attributes] = funkce_attributes if has? 'Funkce'
  hash[:adresa] = adresa.to_h if has? 'Adresa'
  hash[:tel] = tel.to_h if has? 'Tel'
  hash[:fax] = fax.to_h if has? 'Fax'
  hash[:mobil] = mobil.to_h if has? 'Mobil'
  hash[:spojeni] = spojeni if has? 'Spojeni'
  hash[:spojeni_attributes] = spojeni_attributes if has? 'Spojeni'
  hash[:e_mail] = e_mail if has? 'EMail'
  hash[:e_mail_attributes] = e_mail_attributes if has? 'EMail'
  hash[:mail] = mail if has? 'Mail'
  hash[:mail_attributes] = mail_attributes if has? 'Mail'
  hash[:mail_datum] = mail_datum if has? 'MailDatum'
  hash[:mail_datum_attributes] = mail_datum_attributes if has? 'MailDatum'
  hash[:pozn] = pozn if has? 'Pozn'
  hash[:pozn_attributes] = pozn_attributes if has? 'Pozn'
  hash[:kod_partn] = kod_partn if has? 'KodPartn'
  hash[:kod_partn_attributes] = kod_partn_attributes if has? 'KodPartn'
  hash[:guid] = guid if has? 'GUID'
  hash[:guid_attributes] = guid_attributes if has? 'GUID'
  hash[:jednatel] = jednatel if has? 'Jednatel'
  hash[:jednatel_attributes] = jednatel_attributes if has? 'Jednatel'

  hash
end