Class: Zelda::Omroep
- Inherits:
-
Base
- Object
- Base
- Zelda::Omroep
show all
- Defined in:
- lib/zelda/omroep.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#attributes, #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
.all ⇒ Object
9
10
11
|
# File 'lib/zelda/omroep.rb', line 9
def all
Request.get("omroepen")
end
|
.find(slug) ⇒ Object
4
5
6
7
|
# File 'lib/zelda/omroep.rb', line 4
def find(slug)
attrs = Request.get("omroepen/#{slug}")['omroep'] rescue nil
attrs ? new(attrs) : nil
end
|
Instance Method Details
#series ⇒ Object
14
15
16
17
18
|
# File 'lib/zelda/omroep.rb', line 14
def series
Zelda::Request.get("omroepen/#{slug}/series")['omroep']['series']['serie'].map do |attrs|
Zelda::Serie.new(attrs)
end
end
|