mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-04 17:21:38 +00:00
16 lines
285 B
Python
Executable File
16 lines
285 B
Python
Executable File
# -*- coding: utf-8 -*-
|
|
from item_wrappers import item_factory
|
|
|
|
class GildedRose(object):
|
|
|
|
def __init__(self, items):
|
|
self.items = items
|
|
|
|
def update_quality(self):
|
|
for item in self.items:
|
|
wrapper = item_factory(item)
|
|
wrapper.update()
|
|
|
|
|
|
|