Class: MoneyS3::Parsers::CenovaHladinaType

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

Direct Known Subclasses

CenovaHladina

Instance Method Summary collapse

Instance Method Details

#cenyObject



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

def ceny
  at 'Ceny'
end

#ceny_attributesObject



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

def ceny_attributes
  attributes_at 'Ceny'
end

#definice_cenyObject



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

def definice_ceny
  submodel_at(DefiniceCeny, 'definiceCeny')
end

#menaObject



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

def mena
  submodel_at(MenaType, 'Mena')
end

#nazevObject



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

def nazev
  at 'Nazev'
end

#nazev_attributesObject



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

def nazev_attributes
  attributes_at 'Nazev'
end

#poznObject



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

def pozn
  at 'Pozn'
end

#pozn_attributesObject



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

def pozn_attributes
  attributes_at 'Pozn'
end

#skupObject



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

def skup
  at 'Skup'
end

#skup_attributesObject



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

def skup_attributes
  attributes_at 'Skup'
end

#to_hObject



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/money_s3/parsers/cenova_hladina_type.rb', line 54

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

  hash[:zkrat] = zkrat if has? 'Zkrat'
  hash[:zkrat_attributes] = zkrat_attributes if has? 'Zkrat'
  hash[:nazev] = nazev if has? 'Nazev'
  hash[:nazev_attributes] = nazev_attributes if has? 'Nazev'
  hash[:pozn] = pozn if has? 'Pozn'
  hash[:pozn_attributes] = pozn_attributes if has? 'Pozn'
  hash[:mena] = mena.to_h if has? 'Mena'
  hash[:skup] = skup if has? 'Skup'
  hash[:skup_attributes] = skup_attributes if has? 'Skup'
  hash[:ceny] = ceny if has? 'Ceny'
  hash[:ceny_attributes] = ceny_attributes if has? 'Ceny'
  hash[:definice_ceny] = definice_ceny.to_h if has? 'definiceCeny'

  hash
end

#zkratObject



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

def zkrat
  at 'Zkrat'
end

#zkrat_attributesObject



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

def zkrat_attributes
  attributes_at 'Zkrat'
end