Class: Zelda::Zender
Class Method Summary collapse
-
.all ⇒ Object
Find all Zenders.
-
.find(code) ⇒ Object
Find a Zender by code, such as
NL1
or101
.
Instance Method Summary collapse
-
#current_series ⇒ Object
Return Series for this Zender that have broadcasts in the future.
-
#series ⇒ Object
Return all Series for this Zender.
- #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 Zender that have broadcasts in the future.
28 29 30 31 32 |
# File 'lib/zelda/zender.rb', line 28 def current_series Zelda::Request.get("zenders/#{id}/current_series")['zender']['series']['serie'].map do |attrs| Zelda::Serie.new(attrs) end end |
#series ⇒ Object
Return all Series for this Zender.
21 22 23 24 25 |
# File 'lib/zelda/zender.rb', line 21 def series Zelda::Request.get("zenders/#{id}/series")['zender']['series']['serie'].map do |attrs| Zelda::Serie.new(attrs) end end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/zelda/zender.rb', line 16 def to_s name end |