Created
April 6, 2019 10:19
-
-
Save jasongorman/534c225603e7432f0d91c2d7293002c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pricer import Pricer | |
from imdb_api import ImdbAPI | |
class Rental(object): | |
def __init__(self, customer, imdbID): | |
self.customer = customer | |
self.video = Pricer(ImdbAPI()).price(imdbID) | |
def __str__(self): | |
return "Video Rental - customer: " + self.customer \ | |
+ ". Video => title: " + self.video.title \ | |
+ ", price: £" + str(self.video.price) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment