Class: WhatToWatch::BestTV

Inherits:
Show
  • Object
show all
Defined in:
lib/what_to_watch/best_tv.rb

Constant Summary collapse

@@all =
[]

Instance Attribute Summary

Attributes inherited from Show

#cast, #description, #genre_year, #streaming_service, #title, #url

Class Method Summary collapse

Methods inherited from Show

add_shows, #initialize, print_item, print_list, services

Constructor Details

This class inherits a constructor from WhatToWatch::Show

Class Method Details

.allObject



5
6
7
# File 'lib/what_to_watch/best_tv.rb', line 5

def self.all 
  @@all 
end

.list(hash) ⇒ Object



17
18
19
20
21
22
23
24
# File 'lib/what_to_watch/best_tv.rb', line 17

def self.list(hash)
  puts ""
  puts "=========================="
  puts " Best Reviewed Television "
  puts "=========================="
  puts ""
  self.print_list(hash)
end

.reset!Object



9
10
11
# File 'lib/what_to_watch/best_tv.rb', line 9

def self.reset! 
  @@all = []
end

.sectionObject



13
14
15
# File 'lib/what_to_watch/best_tv.rb', line 13

def self.section
  2
end