Class: NewItemsPage
- Inherits:
-
ItemsPage
- Object
- ServiceCall
- Page
- ItemsPage
- NewItemsPage
- Defined in:
- lib/etvnet_seek/core/new_items_page.rb
Constant Summary
Constants inherited from Page
Instance Attribute Summary
Attributes inherited from Page
Attributes inherited from ServiceCall
Instance Method Summary collapse
Methods inherited from ItemsPage
#categories, #category_breadcrumbs, #description, #navigation_menu, #page_browser, #page_title, #see_too_items, #title, #title_items
Methods inherited from Page
Methods inherited from ServiceCall
Constructor Details
This class inherits a constructor from Page
Instance Method Details
#items ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/etvnet_seek/core/new_items_page.rb', line 6 def items list = [] document.css(".gallery ul li a").each do |item| text = item.css("img").at(0).attributes['alt'].value.strip src = item.css("img").at(0).attributes['src'].value.strip href = item['href'] item = BrowseMediaItem.new(text, href) item.image = src list << item end list end |