Class: MoneyS3::Parsers::DefiniceCeny

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

Instance Method Summary collapse

Instance Method Details

#sdphObject



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

def sdph
  at 'SDPH'
end

#sdph_attributesObject



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

def sdph_attributes
  attributes_at 'SDPH'
end

#sleva1Object



62
63
64
# File 'lib/money_s3/parsers/definice_ceny.rb', line 62

def sleva1
  submodel_at(SlevaType, 'Sleva1')
end

#sleva2Object



66
67
68
# File 'lib/money_s3/parsers/definice_ceny.rb', line 66

def sleva2
  submodel_at(SlevaType, 'Sleva2')
end

#sleva3Object



70
71
72
# File 'lib/money_s3/parsers/definice_ceny.rb', line 70

def sleva3
  submodel_at(SlevaType, 'Sleva3')
end

#sleva4Object



74
75
76
# File 'lib/money_s3/parsers/definice_ceny.rb', line 74

def sleva4
  submodel_at(SlevaType, 'Sleva4')
end

#sleva5Object



78
79
80
# File 'lib/money_s3/parsers/definice_ceny.rb', line 78

def sleva5
  submodel_at(SlevaType, 'Sleva5')
end

#to_hObject



82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/money_s3/parsers/definice_ceny.rb', line 82

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

  hash[:sdph] = sdph if has? 'SDPH'
  hash[:sdph_attributes] = sdph_attributes if has? 'SDPH'
  hash[:zaok] = zaok if has? 'Zaok'
  hash[:zaok_attributes] = zaok_attributes if has? 'Zaok'
  hash[:zpusob_zao] = zpusob_zao if has? 'ZpusobZao'
  hash[:zpusob_zao_attributes] = zpusob_zao_attributes if has? 'ZpusobZao'
  hash[:vych_a] = vych_a if has? 'VychA'
  hash[:vych_a_attributes] = vych_a_attributes if has? 'VychA'
  hash[:zpusob_zm_a] = zpusob_zm_a if has? 'ZpusobZmA'
  hash[:zpusob_zm_a_attributes] = zpusob_zm_a_attributes if has? 'ZpusobZmA'
  hash[:vych_b] = vych_b if has? 'VychB'
  hash[:vych_b_attributes] = vych_b_attributes if has? 'VychB'
  hash[:zpusob_zm_b] = zpusob_zm_b if has? 'ZpusobZmB'
  hash[:zpusob_zm_b_attributes] = zpusob_zm_b_attributes if has? 'ZpusobZmB'
  hash[:sleva1] = sleva1.to_h if has? 'Sleva1'
  hash[:sleva2] = sleva2.to_h if has? 'Sleva2'
  hash[:sleva3] = sleva3.to_h if has? 'Sleva3'
  hash[:sleva4] = sleva4.to_h if has? 'Sleva4'
  hash[:sleva5] = sleva5.to_h if has? 'Sleva5'

  hash
end

#vych_aObject



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

def vych_a
  at 'VychA'
end

#vych_a_attributesObject



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

def vych_a_attributes
  attributes_at 'VychA'
end

#vych_bObject



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

def vych_b
  at 'VychB'
end

#vych_b_attributesObject



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

def vych_b_attributes
  attributes_at 'VychB'
end

#zaokObject



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

def zaok
  at 'Zaok'
end

#zaok_attributesObject



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

def zaok_attributes
  attributes_at 'Zaok'
end

#zpusob_zaoObject



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

def zpusob_zao
  at 'ZpusobZao'
end

#zpusob_zao_attributesObject



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

def zpusob_zao_attributes
  attributes_at 'ZpusobZao'
end

#zpusob_zm_aObject



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

def zpusob_zm_a
  at 'ZpusobZmA'
end

#zpusob_zm_a_attributesObject



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

def zpusob_zm_a_attributes
  attributes_at 'ZpusobZmA'
end

#zpusob_zm_bObject



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

def zpusob_zm_b
  at 'ZpusobZmB'
end

#zpusob_zm_b_attributesObject



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

def zpusob_zm_b_attributes
  attributes_at 'ZpusobZmB'
end