Class: Zelda::Omroep
Class Method Summary collapse
-
.all ⇒ Object
Find all omroepen.
-
.find(slug) ⇒ Object
Find an omroep by slug, such as
kro
.
Instance Method Summary collapse
-
#current_series ⇒ Object
Return Series for this Omroep that have broadcasts in the future.
-
#series ⇒ Object
Return all Series for this Omroep.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
This class inherits a constructor from Zelda::Base
Class Method Details
Instance Method Details
#current_series ⇒ Object
Return Series for this Omroep that have broadcasts in the future.
28 29 30 31 32 |
# File 'lib/zelda/omroep.rb', line 28 def current_series Zelda::Request.get("omroepen/#{slug}/current_series")['omroep']['current_series']['serie'].map do |attrs| Zelda::Serie.new(attrs) end end |
#series ⇒ Object
Return all Series for this Omroep.
21 22 23 24 25 |
# File 'lib/zelda/omroep.rb', line 21 def series Zelda::Request.get("omroepen/#{slug}/series")['omroep']['series']['serie'].map do |attrs| Zelda::Serie.new(attrs) end end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/zelda/omroep.rb', line 16 def to_s name end |