Class: MoneyS3::Parsers::PC
- Inherits:
-
Object
- Object
- MoneyS3::Parsers::PC
- Includes:
- ParserCore::BaseParser
- Defined in:
- lib/money_s3/parsers/pc.rb
Instance Method Summary collapse
- #cena1 ⇒ Object
- #cena2 ⇒ Object
- #cena3 ⇒ Object
- #cena4 ⇒ Object
- #cena5 ⇒ Object
- #dealer_skupina ⇒ Object
- #dealer_skupina_attributes ⇒ Object
- #hladina ⇒ Object
- #mena ⇒ Object
- #sdph ⇒ Object
- #sdph_attributes ⇒ Object
- #to_h ⇒ Object
- #vych_a ⇒ Object
- #vych_a_attributes ⇒ Object
- #vych_b ⇒ Object
- #vych_b_attributes ⇒ Object
- #vyp_pr_ceny ⇒ Object
- #vyp_pr_ceny_attributes ⇒ Object
- #zaok ⇒ Object
- #zaok_attributes ⇒ Object
- #zpusob_zao ⇒ Object
- #zpusob_zao_attributes ⇒ Object
- #zpusob_zm_a ⇒ Object
- #zpusob_zm_a_attributes ⇒ Object
- #zpusob_zm_b ⇒ Object
- #zpusob_zm_b_attributes ⇒ Object
Instance Method Details
#cena1 ⇒ Object
86 87 88 |
# File 'lib/money_s3/parsers/pc.rb', line 86 def cena1 submodel_at(CenaType, 'Cena1') end |
#cena2 ⇒ Object
90 91 92 |
# File 'lib/money_s3/parsers/pc.rb', line 90 def cena2 submodel_at(CenaType, 'Cena2') end |
#cena3 ⇒ Object
94 95 96 |
# File 'lib/money_s3/parsers/pc.rb', line 94 def cena3 submodel_at(CenaType, 'Cena3') end |
#cena4 ⇒ Object
98 99 100 |
# File 'lib/money_s3/parsers/pc.rb', line 98 def cena4 submodel_at(CenaType, 'Cena4') end |
#cena5 ⇒ Object
102 103 104 |
# File 'lib/money_s3/parsers/pc.rb', line 102 def cena5 submodel_at(CenaType, 'Cena5') end |
#dealer_skupina ⇒ Object
10 11 12 |
# File 'lib/money_s3/parsers/pc.rb', line 10 def dealer_skupina at 'DealerSkupina' end |
#dealer_skupina_attributes ⇒ Object
14 15 16 |
# File 'lib/money_s3/parsers/pc.rb', line 14 def dealer_skupina_attributes attributes_at 'DealerSkupina' end |
#hladina ⇒ Object
6 7 8 |
# File 'lib/money_s3/parsers/pc.rb', line 6 def hladina submodel_at(CenovaHladinaType, 'Hladina') end |
#mena ⇒ Object
42 43 44 |
# File 'lib/money_s3/parsers/pc.rb', line 42 def mena submodel_at(MenaType, 'Mena') end |
#sdph ⇒ Object
18 19 20 |
# File 'lib/money_s3/parsers/pc.rb', line 18 def sdph at 'SDPH' end |
#sdph_attributes ⇒ Object
22 23 24 |
# File 'lib/money_s3/parsers/pc.rb', line 22 def sdph_attributes attributes_at 'SDPH' end |
#to_h ⇒ Object
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_a ⇒ Object
54 55 56 |
# File 'lib/money_s3/parsers/pc.rb', line 54 def vych_a at 'VychA' end |
#vych_a_attributes ⇒ Object
58 59 60 |
# File 'lib/money_s3/parsers/pc.rb', line 58 def vych_a_attributes attributes_at 'VychA' end |
#vych_b ⇒ Object
70 71 72 |
# File 'lib/money_s3/parsers/pc.rb', line 70 def vych_b at 'VychB' end |
#vych_b_attributes ⇒ Object
74 75 76 |
# File 'lib/money_s3/parsers/pc.rb', line 74 def vych_b_attributes attributes_at 'VychB' end |
#vyp_pr_ceny ⇒ Object
46 47 48 |
# File 'lib/money_s3/parsers/pc.rb', line 46 def vyp_pr_ceny at 'VypPrCeny' end |
#vyp_pr_ceny_attributes ⇒ Object
50 51 52 |
# File 'lib/money_s3/parsers/pc.rb', line 50 def vyp_pr_ceny_attributes attributes_at 'VypPrCeny' end |
#zaok ⇒ Object
26 27 28 |
# File 'lib/money_s3/parsers/pc.rb', line 26 def zaok at 'Zaok' end |
#zaok_attributes ⇒ Object
30 31 32 |
# File 'lib/money_s3/parsers/pc.rb', line 30 def zaok_attributes attributes_at 'Zaok' end |
#zpusob_zao ⇒ Object
34 35 36 |
# File 'lib/money_s3/parsers/pc.rb', line 34 def zpusob_zao at 'ZpusobZao' end |
#zpusob_zao_attributes ⇒ Object
38 39 40 |
# File 'lib/money_s3/parsers/pc.rb', line 38 def zpusob_zao_attributes attributes_at 'ZpusobZao' end |
#zpusob_zm_a ⇒ Object
62 63 64 |
# File 'lib/money_s3/parsers/pc.rb', line 62 def zpusob_zm_a at 'ZpusobZmA' end |
#zpusob_zm_a_attributes ⇒ Object
66 67 68 |
# File 'lib/money_s3/parsers/pc.rb', line 66 def zpusob_zm_a_attributes attributes_at 'ZpusobZmA' end |
#zpusob_zm_b ⇒ Object
78 79 80 |
# File 'lib/money_s3/parsers/pc.rb', line 78 def zpusob_zm_b at 'ZpusobZmB' end |
#zpusob_zm_b_attributes ⇒ Object
82 83 84 |
# File 'lib/money_s3/parsers/pc.rb', line 82 def zpusob_zm_b_attributes attributes_at 'ZpusobZmB' end |