Sha256: 8132084241982961229d16c282c8b0ff1b00e62cca27e531b9904627607216da
Contents?: true
Size: 811 Bytes
Versions: 2
Compression:
Stored size: 811 Bytes
Contents
module Zelda class Zender < Zelda::Base class << self def find(id) attrs = Request.get("zenders/#{id}") attrs ? new(attrs) : nil end def all Request.get("zenders") end end def name attributes[:zender]["name"] end def code attributes[:zender]["code"] end # Return all Series for this Zender. def series Zelda::Request.get("zenders/#{id}/series")['zender']['series']['serie'].map do |attrs| Zelda::Serie.new(attrs) end end # Return Series for this Zender that have broadcasts in the future. def current_series Zelda::Request.get("zenders/#{id}/current_series")['zender']['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.1 | lib/zelda/zender.rb |
zelda-1.1.0 | lib/zelda/zender.rb |