Class: MoneyS3::Parsers::DefiniceCeny
- Inherits:
-
Object
- Object
- MoneyS3::Parsers::DefiniceCeny
- Includes:
- ParserCore::BaseParser
- Defined in:
- lib/money_s3/parsers/definice_ceny.rb
Instance Method Summary collapse
- #sdph ⇒ Object
- #sdph_attributes ⇒ Object
- #sleva1 ⇒ Object
- #sleva2 ⇒ Object
- #sleva3 ⇒ Object
- #sleva4 ⇒ Object
- #sleva5 ⇒ Object
- #to_h ⇒ Object
- #vych_a ⇒ Object
- #vych_a_attributes ⇒ Object
- #vych_b ⇒ Object
- #vych_b_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
#sdph ⇒ Object
6 7 8 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 6 def sdph at 'SDPH' end |
#sdph_attributes ⇒ Object
10 11 12 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 10 def sdph_attributes attributes_at 'SDPH' end |
#sleva1 ⇒ Object
62 63 64 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 62 def sleva1 submodel_at(SlevaType, 'Sleva1') end |
#sleva2 ⇒ Object
66 67 68 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 66 def sleva2 submodel_at(SlevaType, 'Sleva2') end |
#sleva3 ⇒ Object
70 71 72 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 70 def sleva3 submodel_at(SlevaType, 'Sleva3') end |
#sleva4 ⇒ Object
74 75 76 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 74 def sleva4 submodel_at(SlevaType, 'Sleva4') end |
#sleva5 ⇒ Object
78 79 80 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 78 def sleva5 submodel_at(SlevaType, 'Sleva5') end |
#to_h ⇒ Object
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_a ⇒ Object
30 31 32 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 30 def vych_a at 'VychA' end |
#vych_a_attributes ⇒ Object
34 35 36 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 34 def vych_a_attributes attributes_at 'VychA' end |
#vych_b ⇒ Object
46 47 48 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 46 def vych_b at 'VychB' end |
#vych_b_attributes ⇒ Object
50 51 52 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 50 def vych_b_attributes attributes_at 'VychB' end |
#zaok ⇒ Object
14 15 16 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 14 def zaok at 'Zaok' end |
#zaok_attributes ⇒ Object
18 19 20 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 18 def zaok_attributes attributes_at 'Zaok' end |
#zpusob_zao ⇒ Object
22 23 24 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 22 def zpusob_zao at 'ZpusobZao' end |
#zpusob_zao_attributes ⇒ Object
26 27 28 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 26 def zpusob_zao_attributes attributes_at 'ZpusobZao' end |
#zpusob_zm_a ⇒ Object
38 39 40 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 38 def zpusob_zm_a at 'ZpusobZmA' end |
#zpusob_zm_a_attributes ⇒ Object
42 43 44 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 42 def zpusob_zm_a_attributes attributes_at 'ZpusobZmA' end |
#zpusob_zm_b ⇒ Object
54 55 56 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 54 def zpusob_zm_b at 'ZpusobZmB' end |
#zpusob_zm_b_attributes ⇒ Object
58 59 60 |
# File 'lib/money_s3/parsers/definice_ceny.rb', line 58 def zpusob_zm_b_attributes attributes_at 'ZpusobZmB' end |