module Flicks::WaldorfAndStatler

Public Class Methods

review(movie) click to toggle source
# File lib/flicks/waldorf_and_statler.rb, line 9
def self.review(movie)
        case(roll_die)
        when(0..2)
                movie.thumbs_down
                puts "#{movie.title} got a thumbs down."
        when(3..4)
                puts "#{movie.title} was skipped"
        else 
                movie.thumbs_up
                puts "#{movie.title} got a thumbs up!"
        end 
end
roll_die() click to toggle source
# File lib/flicks/waldorf_and_statler.rb, line 5
def self.roll_die
        rand(1..6)
end