class WhatToWatch::Show
Attributes
cast[RW]
category[RW]
description[RW]
genre_year[RW]
streaming_service[RW]
title[RW]
url[RW]
Public Class Methods
filter(selection)
click to toggle source
# File lib/what_to_watch/show.rb, line 19 def self.filter(selection) @@filtered = @@all.select{|object| object.category.include?("#{selection}")} end
filtered()
click to toggle source
# File lib/what_to_watch/show.rb, line 23 def self.filtered @@filtered end
new(title="", streaming_service="", category= "")
click to toggle source
# File lib/what_to_watch/show.rb, line 12 def initialize(title="", streaming_service="", category= "") @title = title @streaming_service = streaming_service @category = category @@all << self end