lib/zelda/omroep.rb in zelda-0.1.0 vs lib/zelda/omroep.rb in zelda-1.0.0
- old
+ new
@@ -9,11 +9,19 @@
def all
Request.get("omroepen")['omroepen']
end
end
+ # Return all Series for this Omroep.
def series
Zelda::Request.get("omroepen/#{slug}/series")['omroep']['series']['serie'].map do |attrs|
+ Zelda::Serie.new(attrs)
+ end
+ end
+
+ # Return Series for this Omroep that have broadcasts in the future.
+ def current_series
+ Zelda::Request.get("omroepen/#{slug}/current_series")['omroep']['series']['serie'].map do |attrs|
Zelda::Serie.new(attrs)
end
end
end
end
\ No newline at end of file