Class: KodiDedup::Show

Inherits:
Object
  • Object
show all
Defined in:
lib/kodi_dedup/classes/show.rb

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Show

Returns a new instance of Show.



3
4
5
# File 'lib/kodi_dedup/classes/show.rb', line 3

def initialize(data)
  @data = data
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



11
12
13
14
# File 'lib/kodi_dedup/classes/show.rb', line 11

def method_missing(method, *args)
  return @data[method.to_s] if @data[method.to_s]
  super(method, args)
end

Instance Method Details

#episodesObject



7
8
9
# File 'lib/kodi_dedup/classes/show.rb', line 7

def episodes
  @episodes ||= KodiDedup.episodes(tvshowid)
end