module Zelda class Omroep < Zelda::Base class << self def find(slug) attrs = Request.get("omroepen/#{slug}")['omroep'] rescue nil attrs ? new(attrs) : nil end def all Request.get("omroepen")['omroepen'] end end def series Zelda::Request.get("omroepen/#{slug}/series")['omroep']['series']['serie'].map do |attrs| Zelda::Serie.new(attrs) end end end end