Class: MoneyS3::Parsers::SouhrnDPHPolType

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

Instance Method Summary collapse

Instance Method Details

#dphObject



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

def dph
  at 'DPH'
end

#dph_attributesObject



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

def dph_attributes
  attributes_at 'DPH'
end

#dph_mjObject



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

def dph_mj
  at 'DPH_MJ'
end

#dph_mj_attributesObject



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

def dph_mj_attributes
  attributes_at 'DPH_MJ'
end

#to_hObject



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/money_s3/parsers/souhrn_dph_pol_type.rb', line 42

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

  hash[:zaklad_mj] = zaklad_mj if has? 'Zaklad_MJ'
  hash[:zaklad_mj_attributes] = zaklad_mj_attributes if has? 'Zaklad_MJ'
  hash[:dph_mj] = dph_mj if has? 'DPH_MJ'
  hash[:dph_mj_attributes] = dph_mj_attributes if has? 'DPH_MJ'
  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[:valuty] = valuty.to_h if has? 'Valuty'

  hash
end

#valutyObject



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

def valuty
  submodel_at(Valuty, 'Valuty')
end

#zakladObject



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

def zaklad
  at 'Zaklad'
end

#zaklad_attributesObject



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

def zaklad_attributes
  attributes_at 'Zaklad'
end

#zaklad_mjObject



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

def zaklad_mj
  at 'Zaklad_MJ'
end

#zaklad_mj_attributesObject



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

def zaklad_mj_attributes
  attributes_at 'Zaklad_MJ'
end