Class: Epguides::EpisodeList

Inherits:
Array
  • Object
show all
Defined in:
lib/epguides/episode_list.rb

Instance Method Summary collapse

Instance Method Details

#find_by_air_date(date) ⇒ Object



3
4
5
# File 'lib/epguides/episode_list.rb', line 3

def find_by_air_date(date)
  self.find {|ep| ep.air_date == date}
end

#find_by_season(season) ⇒ Object



7
8
9
# File 'lib/epguides/episode_list.rb', line 7

def find_by_season(season)
  self.find_all {|ep| ep.season == season.to_s}
end