class WorldTraveler::Continents

Attributes

highlights[RW]
name[RW]
url[RW]

Public Class Methods

all() click to toggle source
# File lib/world_traveler/continents.rb, line 13
def self.all
    WorldTraveler::Scraper.scrape_continents if @@all.empty?
    @@all
end
new(name, url) click to toggle source
# File lib/world_traveler/continents.rb, line 6
def initialize(name, url)
  @name = name
  @url = url
  @highlights = []
  @@all << self
end

Public Instance Methods

get_highlights() click to toggle source
# File lib/world_traveler/continents.rb, line 18
def get_highlights
    WorldTraveler::Scraper.scrape_highlights(self) if @highlights.empty?
end