Class: MoneyS3::Parsers::ObdobiDPH2

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

Instance Method Summary collapse

Instance Method Details

#datum_odObject



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

def datum_od
  at 'DatumOd'
end

#datum_od_attributesObject



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

def datum_od_attributes
  attributes_at 'DatumOd'
end

#poh_d_1Object



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

def poh_d_1
  at 'PohD_1'
end

#poh_d_1_attributesObject



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

def poh_d_1_attributes
  attributes_at 'PohD_1'
end

#poh_d_2Object



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

def poh_d_2
  at 'PohD_2'
end

#poh_d_2_attributesObject



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

def poh_d_2_attributes
  attributes_at 'PohD_2'
end

#poh_d_3Object



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

def poh_d_3
  at 'PohD_3'
end

#poh_d_3_attributesObject



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

def poh_d_3_attributes
  attributes_at 'PohD_3'
end

#poh_d_4Object



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

def poh_d_4
  at 'PohD_4'
end

#poh_d_4_attributesObject



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

def poh_d_4_attributes
  attributes_at 'PohD_4'
end

#poh_d_5Object



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

def poh_d_5
  at 'PohD_5'
end

#poh_d_5_attributesObject



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

def poh_d_5_attributes
  attributes_at 'PohD_5'
end

#poh_d_6Object



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

def poh_d_6
  at 'PohD_6'
end

#poh_d_6_attributesObject



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

def poh_d_6_attributes
  attributes_at 'PohD_6'
end

#to_hObject



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/money_s3/parsers/obdobi_dph2.rb', line 62

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

  hash[:datum_od] = datum_od if has? 'DatumOd'
  hash[:datum_od_attributes] = datum_od_attributes if has? 'DatumOd'
  hash[:poh_d_1] = poh_d_1 if has? 'PohD_1'
  hash[:poh_d_1_attributes] = poh_d_1_attributes if has? 'PohD_1'
  hash[:poh_d_2] = poh_d_2 if has? 'PohD_2'
  hash[:poh_d_2_attributes] = poh_d_2_attributes if has? 'PohD_2'
  hash[:poh_d_3] = poh_d_3 if has? 'PohD_3'
  hash[:poh_d_3_attributes] = poh_d_3_attributes if has? 'PohD_3'
  hash[:poh_d_4] = poh_d_4 if has? 'PohD_4'
  hash[:poh_d_4_attributes] = poh_d_4_attributes if has? 'PohD_4'
  hash[:poh_d_5] = poh_d_5 if has? 'PohD_5'
  hash[:poh_d_5_attributes] = poh_d_5_attributes if has? 'PohD_5'
  hash[:poh_d_6] = poh_d_6 if has? 'PohD_6'
  hash[:poh_d_6_attributes] = poh_d_6_attributes if has? 'PohD_6'

  hash
end