"""Contains class information for Restaurants and Items"""

class Restaurant(object):
    """A class representing a Ordrin restaurant."""

    def __init__(self, city, address, min_order, name, delivery_time, 
            is_delivering, rid, tags):
        self._city = city
        self._address = address
        self._min_order = min_order
        self._name = name
        self._delivery_time = delivery_time
        self._is_delivering = is_delivering
        self._rid = rid
        self._tags = tags


    @property
    def city(self):
        return self._city

    @property
    def address(self):
        return self._address

    @property
    def min_order(self):
        return self._min_order

    @property
    def name(self):
        return self._name

    @property
    def delivery_time(self):
        return self._delivery_time

    @property
    def is_delivering(self):
        return self._is_delivering

    @property
    def rid(self):
        return self._rid

    @property
    def tags(self):
        return self._tags

    def __str__(self):
        return self.name + ": " + self.address

class FoodItem(object):
    def __init__(self, name, price, description, iid, children):
        self._name = name
        self._price = price
        self._description = description
        self._iid = iid
        self._children = children

    @property
    def name(self):
        return self._name

    @property
    def price(self):
        return self._price

    @property
    def description(self):
        return self._description

    @property
    def iid(self):
        return self._iid

    @property
    def children(self):
        return self._children
        


class Category(object):
    """A class representing a Ordrin food category."""
    def __init__(self, name, items):
        self._name = name
        self._items = items

    @property
    def name(self):
        return self._name
    @property
    def items(self):
        return self._items

