Class: MoneyS3::Parsers::DalsiSazba

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

Instance Method Summary collapse

Instance Method Details

#dphObject



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

def dph
  at 'DPH'
end

#dph_attributesObject



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

def dph_attributes
  attributes_at 'DPH'
end

#hladina_dphObject



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

def hladina_dph
  at 'HladinaDPH'
end

#hladina_dph_attributesObject



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

def hladina_dph_attributes
  attributes_at 'HladinaDPH'
end

#popisObject



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

def popis
  at 'Popis'
end

#popis_attributesObject



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

def popis_attributes
  attributes_at 'Popis'
end

#sazbaObject



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

def sazba
  at 'Sazba'
end

#sazba_attributesObject



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

def sazba_attributes
  attributes_at 'Sazba'
end

#to_hObject



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/money_s3/parsers/dalsi_sazba.rb', line 46

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

  hash[:popis] = popis if has? 'Popis'
  hash[:popis_attributes] = popis_attributes if has? 'Popis'
  hash[:hladina_dph] = hladina_dph if has? 'HladinaDPH'
  hash[:hladina_dph_attributes] = hladina_dph_attributes if has? 'HladinaDPH'
  hash[:sazba] = sazba if has? 'Sazba'
  hash[:sazba_attributes] = sazba_attributes if has? 'Sazba'
  hash[:zaklad] = zaklad if has? 'Zaklad'
  hash[:zaklad_attributes] = zaklad_attributes if has? 'Zaklad'
  hash[:dph] = dph if has? 'DPH'
  hash[:dph_attributes] = dph_attributes if has? 'DPH'

  hash
end

#zakladObject



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

def zaklad
  at 'Zaklad'
end

#zaklad_attributesObject



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

def zaklad_attributes
  attributes_at 'Zaklad'
end