Class: Zelda::Zender
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
- #code ⇒ Object
-
#current_series ⇒ Object
Return Series for this Zender that have broadcasts in the future.
- #name ⇒ Object
-
#series ⇒ Object
Return all Series for this Zender.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Zelda::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Zelda::Base
Class Method Details
Instance Method Details
#code ⇒ Object
18 19 20 |
# File 'lib/zelda/zender.rb', line 18 def code attributes[:zender]["code"] end |
#current_series ⇒ Object
Return Series for this Zender that have broadcasts in the future.
30 31 32 33 34 |
# File 'lib/zelda/zender.rb', line 30 def current_series Zelda::Request.get("zenders/#{id}/current_series")['zender']['series']['serie'].map do |attrs| Zelda::Serie.new(attrs) end end |
#name ⇒ Object
14 15 16 |
# File 'lib/zelda/zender.rb', line 14 def name attributes[:zender]["name"] end |