summaryrefslogtreecommitdiff
path: root/lib/rental.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-05-26 16:34:16 -0600
committermo khan <mo@mokhan.ca>2014-05-26 16:34:26 -0600
commit7245619df4350c63d5d858c23efbe1057933a2e4 (patch)
treea9d1246808a1d989ba92fa001b8a2ce69d139f5e /lib/rental.rb
parent4ddbad3e6bd5a95ed4b9c680e93f39003612a61f (diff)
split apart files and add first spec.
Diffstat (limited to 'lib/rental.rb')
-rw-r--r--lib/rental.rb7
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