Method: WhatToWatch::Show.print_item

Defined in:
lib/what_to_watch/show.rb


46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/what_to_watch/show.rb', line 46

def self.print_item(input)
  object = self.all[input.to_i-1]
  WhatToWatch::Scraper.scrape_imdb(object) if object.url == nil
  puts ""
  puts "===================================="
  puts "     #{object.title.upcase}"
  puts "===================================="
  puts "#{object.genre_year}"
  puts ""
  puts "*** Available on #{object.streaming_service.upcase} ***"
  puts ""
  object.cast.each{|role, people| puts "#{role} #{people}"}
  puts ""
  puts "---Description---"
  puts ""
  puts "#{object.description}"
  puts "[...]"
  puts ""
  puts "For more information"
  puts ""
  puts "===>  #{object.url}"
end