Sha256: eb9553ffe8c29a3ada001e6b00abdf8dd0659d193e8dfa4d77af3f73b2f14a1b
Contents?: true
Size: 828 Bytes
Versions: 1
Compression:
Stored size: 828 Bytes
Contents
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 # 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']['current_series']['serie'].map do |attrs| Zelda::Serie.new(attrs) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zelda-1.2.0 | lib/zelda/omroep.rb |