Class: KodiDedup::Show
- Inherits:
-
Object
- Object
- KodiDedup::Show
- Defined in:
- lib/kodi_dedup/classes/show.rb
Instance Method Summary collapse
- #episodes ⇒ Object
-
#initialize(data) ⇒ Show
constructor
A new instance of Show.
- #method_missing(method, *args) ⇒ Object
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 |