Method: WhatToWatch::Show.print_list
- Defined in:
- lib/what_to_watch/show.rb
.print_list(hash) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/what_to_watch/show.rb', line 31 def self.print_list(hash) self.all.each.with_index(1) do |object, index| if self.services(hash).include?(object.streaming_service) puts "" puts "Available! #{index}. #{object.title.upcase}. Watch Now on #{object.streaming_service}." puts "" else puts "" puts "Sorry..... #{index}. #{object.title.upcase}. Only on #{object.streaming_service}." puts "" end end end |