Class: Zelda::Aflevering

Inherits:
Base
  • Object
show all
Defined in:
lib/zelda/aflevering.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods inherited from Base

#initialize, #method_missing

Constructor Details

This class inherits a constructor from Zelda::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Zelda::Base

Class Method Details

.find(id) ⇒ Object



4
5
6
7
# File 'lib/zelda/aflevering.rb', line 4

def find(id)
  attrs = Request.get("afleveringen/#{id}")['aflevering'] rescue nil
  attrs ? new(attrs) : nil
end