Class: MoneyS3::Parsers::KurzType

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

Instance Method Summary collapse

Instance Method Details

#bankaObject



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

def banka
  at 'Banka'
end

#banka_attributesObject



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

def banka_attributes
  attributes_at 'Banka'
end

#datumObject



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

def datum
  at 'Datum'
end

#datum_attributesObject



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

def datum_attributes
  attributes_at 'Datum'
end

#devizy_nakupObject



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

def devizy_nakup
  at 'DevizyNakup'
end

#devizy_nakup_attributesObject



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

def devizy_nakup_attributes
  attributes_at 'DevizyNakup'
end

#devizy_prodejObject



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

def devizy_prodej
  at 'DevizyProdej'
end

#devizy_prodej_attributesObject



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

def devizy_prodej_attributes
  attributes_at 'DevizyProdej'
end

#kodObject



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

def kod
  at 'Kod'
end

#kod_attributesObject



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

def kod_attributes
  attributes_at 'Kod'
end

#mnozstviObject



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

def mnozstvi
  at 'Mnozstvi'
end

#mnozstvi_attributesObject



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

def mnozstvi_attributes
  attributes_at 'Mnozstvi'
end

#nb_stredObject



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

def nb_stred
  at 'NBStred'
end

#nb_stred_attributesObject



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

def nb_stred_attributes
  attributes_at 'NBStred'
end

#to_hObject



86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# File 'lib/money_s3/parsers/kurz_type.rb', line 86

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

  hash[:banka] = banka if has? 'Banka'
  hash[:banka_attributes] = banka_attributes if has? 'Banka'
  hash[:datum] = datum if has? 'Datum'
  hash[:datum_attributes] = datum_attributes if has? 'Datum'
  hash[:kod] = kod if has? 'Kod'
  hash[:kod_attributes] = kod_attributes if has? 'Kod'
  hash[:zeme] = zeme if has? 'Zeme'
  hash[:zeme_attributes] = zeme_attributes if has? 'Zeme'
  hash[:mnozstvi] = mnozstvi if has? 'Mnozstvi'
  hash[:mnozstvi_attributes] = mnozstvi_attributes if has? 'Mnozstvi'
  hash[:nb_stred] = nb_stred if has? 'NBStred'
  hash[:nb_stred_attributes] = nb_stred_attributes if has? 'NBStred'
  hash[:devizy_nakup] = devizy_nakup if has? 'DevizyNakup'
  hash[:devizy_nakup_attributes] = devizy_nakup_attributes if has? 'DevizyNakup'
  hash[:devizy_prodej] = devizy_prodej if has? 'DevizyProdej'
  hash[:devizy_prodej_attributes] = devizy_prodej_attributes if has? 'DevizyProdej'
  hash[:valuty_nakup] = valuty_nakup if has? 'ValutyNakup'
  hash[:valuty_nakup_attributes] = valuty_nakup_attributes if has? 'ValutyNakup'
  hash[:valuty_prodej] = valuty_prodej if has? 'ValutyProdej'
  hash[:valuty_prodej_attributes] = valuty_prodej_attributes if has? 'ValutyProdej'

  hash
end

#valuty_nakupObject



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

def valuty_nakup
  at 'ValutyNakup'
end

#valuty_nakup_attributesObject



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

def valuty_nakup_attributes
  attributes_at 'ValutyNakup'
end

#valuty_prodejObject



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

def valuty_prodej
  at 'ValutyProdej'
end

#valuty_prodej_attributesObject



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

def valuty_prodej_attributes
  attributes_at 'ValutyProdej'
end

#zemeObject



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

def zeme
  at 'Zeme'
end

#zeme_attributesObject



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

def zeme_attributes
  attributes_at 'Zeme'
end