Class: LonelyPlanetToursTest

Inherits:
LonelyPlanetScrape::LonelyPlanetTours show all
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

Methods inherited from LonelyPlanetScrape::LonelyPlanetTours

#tours

Constructor Details

#initializeLonelyPlanetToursTest

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_tourObject



13
14
15
# File 'lib/lonelyplanet_scrap_test.rb', line 13

def test_tour
  @tours ||= test_html_extraction
end