Class: Midna::Broadcaster
- Inherits:
-
Object
- Object
- Midna::Broadcaster
- Defined in:
- lib/midna/broadcaster.rb
Class Method Summary collapse
-
.find(slug) ⇒ Object
Return one Broadcaster based on its
slug
. -
.series(slug) ⇒ Object
Return series for a Broadcaster, based on its
slug
.
Class Method Details
.find(slug) ⇒ Object
Return one Broadcaster based on its slug
.
4 5 6 |
# File 'lib/midna/broadcaster.rb', line 4 def self.find(slug) Midna.get("/broadcasters/#{slug}.xml").to_hash['broadcaster'] end |
.series(slug) ⇒ Object
Return series for a Broadcaster, based on its slug
.
9 10 11 |
# File 'lib/midna/broadcaster.rb', line 9 def self.series(slug) Midna.get("/broadcasters/#{slug}/series.xml").to_hash['series'] end |