diff options
| author | mo khan <mo@mokhan.ca> | 2014-05-26 16:34:16 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-05-26 16:34:26 -0600 |
| commit | 7245619df4350c63d5d858c23efbe1057933a2e4 (patch) | |
| tree | a9d1246808a1d989ba92fa001b8a2ce69d139f5e /lib/rental.rb | |
| parent | 4ddbad3e6bd5a95ed4b9c680e93f39003612a61f (diff) | |
split apart files and add first spec.
Diffstat (limited to 'lib/rental.rb')
| -rw-r--r-- | lib/rental.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rental.rb b/lib/rental.rb new file mode 100644 index 0000000..3409359 --- /dev/null +++ b/lib/rental.rb @@ -0,0 +1,7 @@ +class Rental + attr_reader :movie, :days_rented + + def initialize(movie, days_rented) + @movie, @days_rented = movie, days_rented + end +end |
