social-clusters/src/career.py

15 lines
491 B
Python
Raw Normal View History

from src.raw_data import RawData
class Career:
def __init__(self, raw_career):
data = RawData(raw_career)
self.id = data.get_int('id')
self.group_id = data.get_int('group_id')
self.company = data.get_str('company')
self.country_id = data.get_int('country_id')
self.city_id = data.get_int('city_id')
self.year_from = data.get_int('from')
self.until = data.get_int('until')
self.position = data.get_str('position')