lib/zelda/omroep.rb in zelda-1.1.1 vs lib/zelda/omroep.rb in zelda-1.2.0
- old
+ new
@@ -1,12 +1,14 @@
module Zelda
class Omroep < Zelda::Base
class << self
+ # Find an omroep by slug, such as +kro+.
def find(slug)
attrs = Request.get("omroepen/#{slug}")['omroep'] rescue nil
attrs ? new(attrs) : nil
end
+ # Find all omroepen.
def all
Request.get("omroepen")['omroepen']
end
end
\ No newline at end of file