Sha256: 0ba31fcdd3983f4c460c2bd9e71fa948f8df8d0ced67cbf907bfe758f3f0d3bc
Contents?: true
Size: 451 Bytes
Versions: 1
Compression:
Stored size: 451 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 def series Zelda::Request.get("omroepen/#{slug}/series")['omroep']['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-0.1.0 | lib/zelda/omroep.rb |