Sha256: 4ed1fec4d726d4d5937891f8c6c49edd647dd9c20a97de89256847751d682349

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 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?
    end
    
  end 

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
world_traveler-0.1.1 lib/world_traveler/continents.rb