15 lines
334 B
Python
15 lines
334 B
Python
|
#! /usr/bin/env python
|
||
|
# -*- coding: utf-8 -*-
|
||
|
#
|
||
|
# Copyright (C) 2011 Sebastian Pipping <sebastian@pipping.org>
|
||
|
# Licensed under GPL v3 or later
|
||
|
|
||
|
from decimal import Decimal
|
||
|
|
||
|
class Item:
|
||
|
def __init__(self, d):
|
||
|
self.deposit = Decimal(d['deposit'])
|
||
|
self.id = int(d['id'])
|
||
|
self.name = d['name']
|
||
|
self.price = Decimal(d['price'])
|