Sha256: 2a4e783a7ddb71d2ee518a7f09326bd25cfc44643e472cbece9733d76f684803
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
class WorldTraveler::Continents attr_accessor :name, :url, :highlights @@all = [] def initialize(name, url) @name = name @url = url @highlights = [] @@all << self end def self.all WorldTraveler::Scraper.scrape_continents if @@all.empty? @@all end def get_highlights WorldTraveler::Scraper.scrape_highlights(self) if @highlights.empty? # binding.pry end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
world_traveler-0.1.0 | lib/world_traveler/continents.rb |