Class: LonelyPlanetToursTest
- Inherits:
-
LonelyPlanetScrape::LonelyPlanetTours
- Object
- LonelyPlanetScrape::LonelyPlanetTours
- LonelyPlanetToursTest
- Defined in:
- lib/lonelyplanet_scrap_test.rb
Overview
can be used to test functionality before implementing it in Scraper Class
Constant Summary
Constants inherited from LonelyPlanetScrape::LonelyPlanetTours
LonelyPlanetScrape::LonelyPlanetTours::CARD_CONTENT_XPATH, LonelyPlanetScrape::LonelyPlanetTours::CARD_IMGLINK_XPATH, LonelyPlanetScrape::LonelyPlanetTours::CARD_LINK_XPATH, LonelyPlanetScrape::LonelyPlanetTours::CARD_LOCATION_XPATH, LonelyPlanetScrape::LonelyPlanetTours::CARD_PRICE_AMOUNT_XPATH, LonelyPlanetScrape::LonelyPlanetTours::CARD_PRICE_CURRENCY_XPATH, LonelyPlanetScrape::LonelyPlanetTours::CARD_TITLE_XPATH, LonelyPlanetScrape::LonelyPlanetTours::LONELYPLANET_URL, LonelyPlanetScrape::LonelyPlanetTours::TOUR_RELATIVE_DIR, LonelyPlanetScrape::LonelyPlanetTours::TOUR_XPATH_CARD
Instance Method Summary collapse
-
#initialize ⇒ LonelyPlanetToursTest
constructor
override super class initialize function.
- #test_tour ⇒ Object
Methods inherited from LonelyPlanetScrape::LonelyPlanetTours
Constructor Details
#initialize ⇒ LonelyPlanetToursTest
override super class initialize function
9 10 11 |
# File 'lib/lonelyplanet_scrap_test.rb', line 9 def initialize test_parse_html end |
Instance Method Details
#test_tour ⇒ Object
13 14 15 |
# File 'lib/lonelyplanet_scrap_test.rb', line 13 def test_tour @tours ||= test_html_extraction end |