Sha256: a77e3617314933042a2384802f388a0238158523fc54585668b77eb93ac3b894
Contents?: true
Size: 746 Bytes
Versions: 2
Compression:
Stored size: 746 Bytes
Contents
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 # 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zelda-1.1.0 | lib/zelda/omroep.rb |
zelda-1.0.0 | lib/zelda/omroep.rb |