Class: MoneyS3::Parsers::SouhrnDPHType

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

Instance Method Summary collapse

Instance Method Details

#dph22Object



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

def dph22
  at 'DPH22'
end

#dph22_attributesObject



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

def dph22_attributes
  attributes_at 'DPH22'
end

#dph5Object



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

def dph5
  at 'DPH5'
end

#dph5_attributesObject



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

def dph5_attributes
  attributes_at 'DPH5'
end

#seznam_dalsi_sazbyObject



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

def seznam_dalsi_sazby
  array_of_at(DalsiSazba, ['SeznamDalsiSazby', 'DalsiSazba'])
end

#to_hObject



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/money_s3/parsers/souhrn_dph_type.rb', line 50

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

  hash[:zaklad0] = zaklad0 if has? 'Zaklad0'
  hash[:zaklad0_attributes] = zaklad0_attributes if has? 'Zaklad0'
  hash[:zaklad5] = zaklad5 if has? 'Zaklad5'
  hash[:zaklad5_attributes] = zaklad5_attributes if has? 'Zaklad5'
  hash[:zaklad22] = zaklad22 if has? 'Zaklad22'
  hash[:zaklad22_attributes] = zaklad22_attributes if has? 'Zaklad22'
  hash[:dph5] = dph5 if has? 'DPH5'
  hash[:dph5_attributes] = dph5_attributes if has? 'DPH5'
  hash[:dph22] = dph22 if has? 'DPH22'
  hash[:dph22_attributes] = dph22_attributes if has? 'DPH22'
  hash[:seznam_dalsi_sazby] = seznam_dalsi_sazby.map(&:to_h) if has? 'SeznamDalsiSazby'

  hash
end

#zaklad0Object



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

def zaklad0
  at 'Zaklad0'
end

#zaklad0_attributesObject



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

def zaklad0_attributes
  attributes_at 'Zaklad0'
end

#zaklad22Object



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

def zaklad22
  at 'Zaklad22'
end

#zaklad22_attributesObject



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

def zaklad22_attributes
  attributes_at 'Zaklad22'
end

#zaklad5Object



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

def zaklad5
  at 'Zaklad5'
end

#zaklad5_attributesObject



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

def zaklad5_attributes
  attributes_at 'Zaklad5'
end