class MoneyS3::Parsers::DefiniceCeny

Public Instance Methods

sdph() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 6
def sdph
  at 'SDPH'
end
sdph_attributes() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 10
def sdph_attributes
  attributes_at 'SDPH'
end
sleva1() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 62
def sleva1
  submodel_at(SlevaType, 'Sleva1')
end
sleva2() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 66
def sleva2
  submodel_at(SlevaType, 'Sleva2')
end
sleva3() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 70
def sleva3
  submodel_at(SlevaType, 'Sleva3')
end
sleva4() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 74
def sleva4
  submodel_at(SlevaType, 'Sleva4')
end
sleva5() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 78
def sleva5
  submodel_at(SlevaType, 'Sleva5')
end
to_h() click to toggle source
# 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() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 30
def vych_a
  at 'VychA'
end
vych_a_attributes() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 34
def vych_a_attributes
  attributes_at 'VychA'
end
vych_b() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 46
def vych_b
  at 'VychB'
end
vych_b_attributes() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 50
def vych_b_attributes
  attributes_at 'VychB'
end
zaok() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 14
def zaok
  at 'Zaok'
end
zaok_attributes() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 18
def zaok_attributes
  attributes_at 'Zaok'
end
zpusob_zao() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 22
def zpusob_zao
  at 'ZpusobZao'
end
zpusob_zao_attributes() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 26
def zpusob_zao_attributes
  attributes_at 'ZpusobZao'
end
zpusob_zm_a() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 38
def zpusob_zm_a
  at 'ZpusobZmA'
end
zpusob_zm_a_attributes() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 42
def zpusob_zm_a_attributes
  attributes_at 'ZpusobZmA'
end
zpusob_zm_b() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 54
def zpusob_zm_b
  at 'ZpusobZmB'
end
zpusob_zm_b_attributes() click to toggle source
# File lib/money_s3/parsers/definice_ceny.rb, line 58
def zpusob_zm_b_attributes
  attributes_at 'ZpusobZmB'
end