Class: RadioPage
- Inherits:
-
ItemsPage
- Object
- ServiceCall
- Page
- ItemsPage
- RadioPage
- Defined in:
- lib/etvnet_seek/core/radio_page.rb
Constant Summary collapse
- AUDIO_URL =
BASE_URL + "/audio/"
Constants inherited from Page
Instance Attribute Summary
Attributes inherited from Page
Attributes inherited from ServiceCall
Instance Method Summary collapse
-
#initialize(url = AUDIO_URL) ⇒ RadioPage
constructor
A new instance of RadioPage.
- #items ⇒ Object
Methods inherited from ItemsPage
#categories, #category_breadcrumbs, #description, #navigation_menu, #page_browser, #page_title, #see_too_items, #title, #title_items
Methods inherited from ServiceCall
Constructor Details
Instance Method Details
#items ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/etvnet_seek/core/radio_page.rb', line 11 def items list = [] document.css("#sidebar #slideshow1 .active a").each do |item| text = item.css("img").at(0).attributes["title"].value.strip href = item['href'] list << MediaItem.new(text, href) end list end |