Class: MoneyS3::Parsers::PC

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

Instance Method Summary collapse

Instance Method Details

#cena1Object



86
87
88
# File 'lib/money_s3/parsers/pc.rb', line 86

def cena1
  submodel_at(CenaType, 'Cena1')
end

#cena2Object



90
91
92
# File 'lib/money_s3/parsers/pc.rb', line 90

def cena2
  submodel_at(CenaType, 'Cena2')
end

#cena3Object



94
95
96
# File 'lib/money_s3/parsers/pc.rb', line 94

def cena3
  submodel_at(CenaType, 'Cena3')
end

#cena4Object



98
99
100
# File 'lib/money_s3/parsers/pc.rb', line 98

def cena4
  submodel_at(CenaType, 'Cena4')
end

#cena5Object



102
103
104
# File 'lib/money_s3/parsers/pc.rb', line 102

def cena5
  submodel_at(CenaType, 'Cena5')
end

#dealer_skupinaObject



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

def dealer_skupina
  at 'DealerSkupina'
end

#dealer_skupina_attributesObject



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

def dealer_skupina_attributes
  attributes_at 'DealerSkupina'
end

#hladinaObject



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

def hladina
  submodel_at(CenovaHladinaType, 'Hladina')
end

#menaObject



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

def mena
  submodel_at(MenaType, 'Mena')
end

#sdphObject



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

def sdph
  at 'SDPH'
end

#sdph_attributesObject



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

def sdph_attributes
  attributes_at 'SDPH'
end

#to_hObject



106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/money_s3/parsers/pc.rb', line 106

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

  hash[:hladina] = hladina.to_h if has? 'Hladina'
  hash[:dealer_skupina] = dealer_skupina if has? 'DealerSkupina'
  hash[:dealer_skupina_attributes] = dealer_skupina_attributes if has? 'DealerSkupina'
  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[:mena] = mena.to_h if has? 'Mena'
  hash[:vyp_pr_ceny] = vyp_pr_ceny if has? 'VypPrCeny'
  hash[:vyp_pr_ceny_attributes] = vyp_pr_ceny_attributes if has? 'VypPrCeny'
  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[:cena1] = cena1.to_h if has? 'Cena1'
  hash[:cena2] = cena2.to_h if has? 'Cena2'
  hash[:cena3] = cena3.to_h if has? 'Cena3'
  hash[:cena4] = cena4.to_h if has? 'Cena4'
  hash[:cena5] = cena5.to_h if has? 'Cena5'

  hash
end

#vych_aObject



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

def vych_a
  at 'VychA'
end

#vych_a_attributesObject



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

def vych_a_attributes
  attributes_at 'VychA'
end

#vych_bObject



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

def vych_b
  at 'VychB'
end

#vych_b_attributesObject



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

def vych_b_attributes
  attributes_at 'VychB'
end

#vyp_pr_cenyObject



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

def vyp_pr_ceny
  at 'VypPrCeny'
end

#vyp_pr_ceny_attributesObject



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

def vyp_pr_ceny_attributes
  attributes_at 'VypPrCeny'
end

#zaokObject



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

def zaok
  at 'Zaok'
end

#zaok_attributesObject



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

def zaok_attributes
  attributes_at 'Zaok'
end

#zpusob_zaoObject



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

def zpusob_zao
  at 'ZpusobZao'
end

#zpusob_zao_attributesObject



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

def zpusob_zao_attributes
  attributes_at 'ZpusobZao'
end

#zpusob_zm_aObject



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

def zpusob_zm_a
  at 'ZpusobZmA'
end

#zpusob_zm_a_attributesObject



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

def zpusob_zm_a_attributes
  attributes_at 'ZpusobZmA'
end

#zpusob_zm_bObject



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

def zpusob_zm_b
  at 'ZpusobZmB'
end

#zpusob_zm_b_attributesObject



82
83
84
# File 'lib/money_s3/parsers/pc.rb', line 82

def zpusob_zm_b_attributes
  attributes_at 'ZpusobZmB'
end