#import "CTPeriodicLease.h"

@implementation CTPeriodicLease

@synthesize weeklyRental;

+ (CTLease *)periodicLeaseWithWeeklyPrice:(float)weeklyPrice
{
   CTPeriodicLease *lease = [CTPeriodicLease alloc]; 
   lease.weeklyRental = weeklyPrice;
   return [lease autorelease];
}

- (NSString *)description
{
   return [NSString stringWithFormat:@"$%0.2f tygodniowo", self.weeklyRental];
}

@end
