MediaMath/t1-python

View on GitHub
terminalone/models/vertical.py

Summary

Maintainability
A
0 mins
Test Coverage
# -*- coding: utf-8 -*-
"""Provides vertical object."""

from __future__ import absolute_import
from .. import t1types
from ..entity import Entity


class Vertical(Entity):
    """docstring for Vertical."""
    collection = 'verticals'
    resource = 'vertical'
    _relations = {
        'advertiser',
    }

    _pull = {
        'id': int,
        'name': None,
        'created_on': t1types.strpt,
        'updated_on': t1types.strpt,
        'version': int,
    }

    _push = _pull

    def __init__(self, session, properties=None, **kwargs):
        super(Vertical, self).__init__(session, properties, **kwargs)