class MoneyS3::Parsers::MzdaType

Public Instance Methods

mesic() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 10
def mesic
  at 'Mesic'
end
mesic_attributes() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 14
def mesic_attributes
  attributes_at 'Mesic'
end
odpr_dnu() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 42
def odpr_dnu
  at 'OdprDnu'
end
odpr_dnu_attributes() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 46
def odpr_dnu_attributes
  attributes_at 'OdprDnu'
end
odpr_hod() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 50
def odpr_hod
  at 'OdprHod'
end
odpr_hod_attributes() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 54
def odpr_hod_attributes
  attributes_at 'OdprHod'
end
odpr_sv_dnu() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 58
def odpr_sv_dnu
  at 'OdprSvDnu'
end
odpr_sv_dnu_attributes() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 62
def odpr_sv_dnu_attributes
  attributes_at 'OdprSvDnu'
end
odpr_sv_hod() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 66
def odpr_sv_hod
  at 'OdprSvHod'
end
odpr_sv_hod_attributes() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 70
def odpr_sv_hod_attributes
  attributes_at 'OdprSvHod'
end
prac_dnu() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 26
def prac_dnu
  at 'PracDnu'
end
prac_dnu_attributes() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 30
def prac_dnu_attributes
  attributes_at 'PracDnu'
end
prac_hod() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 34
def prac_hod
  at 'PracHod'
end
prac_hod_attributes() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 38
def prac_hod_attributes
  attributes_at 'PracHod'
end
rok() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 18
def rok
  at 'Rok'
end
rok_attributes() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 22
def rok_attributes
  attributes_at 'Rok'
end
seznam_mz_priplatku() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 78
def seznam_mz_priplatku
  array_of_at(MzPriplatek, ['SeznamMzPriplatku', 'MzPriplatek'])
end
seznam_nepritomnosti() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 74
def seznam_nepritomnosti
  array_of_at(NepritomnostType, ['SeznamNepritomnosti', 'Nepritomnost'])
end
to_h() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 82
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:zamestnanec] = zamestnanec.to_h if has? 'Zamestnanec'
  hash[:mesic] = mesic if has? 'Mesic'
  hash[:mesic_attributes] = mesic_attributes if has? 'Mesic'
  hash[:rok] = rok if has? 'Rok'
  hash[:rok_attributes] = rok_attributes if has? 'Rok'
  hash[:prac_dnu] = prac_dnu if has? 'PracDnu'
  hash[:prac_dnu_attributes] = prac_dnu_attributes if has? 'PracDnu'
  hash[:prac_hod] = prac_hod if has? 'PracHod'
  hash[:prac_hod_attributes] = prac_hod_attributes if has? 'PracHod'
  hash[:odpr_dnu] = odpr_dnu if has? 'OdprDnu'
  hash[:odpr_dnu_attributes] = odpr_dnu_attributes if has? 'OdprDnu'
  hash[:odpr_hod] = odpr_hod if has? 'OdprHod'
  hash[:odpr_hod_attributes] = odpr_hod_attributes if has? 'OdprHod'
  hash[:odpr_sv_dnu] = odpr_sv_dnu if has? 'OdprSvDnu'
  hash[:odpr_sv_dnu_attributes] = odpr_sv_dnu_attributes if has? 'OdprSvDnu'
  hash[:odpr_sv_hod] = odpr_sv_hod if has? 'OdprSvHod'
  hash[:odpr_sv_hod_attributes] = odpr_sv_hod_attributes if has? 'OdprSvHod'
  hash[:seznam_nepritomnosti] = seznam_nepritomnosti.map(&:to_h) if has? 'SeznamNepritomnosti'
  hash[:seznam_mz_priplatku] = seznam_mz_priplatku.map(&:to_h) if has? 'SeznamMzPriplatku'

  hash
end
zamestnanec() click to toggle source
# File lib/money_s3/parsers/mzda_type.rb, line 6
def zamestnanec
  submodel_at(ZamestnanecType, 'Zamestnanec')
end