class MoneyS3::Parsers::AlternativaPrislusenstviType

Public Instance Methods

druh_komp() click to toggle source
# File lib/money_s3/parsers/alternativa_prislusenstvi_type.rb, line 30
def druh_komp
  at 'DruhKomp'
end
druh_komp_attributes() click to toggle source
# File lib/money_s3/parsers/alternativa_prislusenstvi_type.rb, line 34
def druh_komp_attributes
  attributes_at 'DruhKomp'
end
km_karta() click to toggle source
# File lib/money_s3/parsers/alternativa_prislusenstvi_type.rb, line 46
def km_karta
  submodel_at(KmKartaType, 'KmKarta')
end
poc_mj() click to toggle source
# File lib/money_s3/parsers/alternativa_prislusenstvi_type.rb, line 14
def poc_mj
  at 'PocMJ'
end
poc_mj_attributes() click to toggle source
# File lib/money_s3/parsers/alternativa_prislusenstvi_type.rb, line 18
def poc_mj_attributes
  attributes_at 'PocMJ'
end
popis() click to toggle source
# File lib/money_s3/parsers/alternativa_prislusenstvi_type.rb, line 6
def popis
  at 'Popis'
end
popis_attributes() click to toggle source
# File lib/money_s3/parsers/alternativa_prislusenstvi_type.rb, line 10
def popis_attributes
  attributes_at 'Popis'
end
poradi() click to toggle source
# File lib/money_s3/parsers/alternativa_prislusenstvi_type.rb, line 22
def poradi
  at 'Poradi'
end
poradi_attributes() click to toggle source
# File lib/money_s3/parsers/alternativa_prislusenstvi_type.rb, line 26
def poradi_attributes
  attributes_at 'Poradi'
end
sklad() click to toggle source
# File lib/money_s3/parsers/alternativa_prislusenstvi_type.rb, line 50
def sklad
  submodel_at(SkladType, 'Sklad')
end
symetric() click to toggle source
# File lib/money_s3/parsers/alternativa_prislusenstvi_type.rb, line 38
def symetric
  at 'Symetric'
end
symetric_attributes() click to toggle source
# File lib/money_s3/parsers/alternativa_prislusenstvi_type.rb, line 42
def symetric_attributes
  attributes_at 'Symetric'
end
to_h() click to toggle source
# File lib/money_s3/parsers/alternativa_prislusenstvi_type.rb, line 54
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:popis] = popis if has? 'Popis'
  hash[:popis_attributes] = popis_attributes if has? 'Popis'
  hash[:poc_mj] = poc_mj if has? 'PocMJ'
  hash[:poc_mj_attributes] = poc_mj_attributes if has? 'PocMJ'
  hash[:poradi] = poradi if has? 'Poradi'
  hash[:poradi_attributes] = poradi_attributes if has? 'Poradi'
  hash[:druh_komp] = druh_komp if has? 'DruhKomp'
  hash[:druh_komp_attributes] = druh_komp_attributes if has? 'DruhKomp'
  hash[:symetric] = symetric if has? 'Symetric'
  hash[:symetric_attributes] = symetric_attributes if has? 'Symetric'
  hash[:km_karta] = km_karta.to_h if has? 'KmKarta'
  hash[:sklad] = sklad.to_h if has? 'Sklad'

  hash
end