Sha256: 3353f3ea5a5061689f1e639f617d969a4e7999f18e8a38d5a47ea19ee01ec057
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
class WorldTraveler::Highlights attr_accessor :name, :continent, :link, :info#, :index @@all = [] def initialize(name, continent, link) @name = name @continent = continent @link = link @info = [] add_to_continent save end def self.all @@all end def add_to_continent @continent.highlights << self unless @continent.highlights.include?(self) end def get_highlight_details WorldTraveler::Scraper.scrape_info(self) if @info.empty? end def save @@all << self end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
world_traveler-0.1.1 | lib/world_traveler/highlights.rb |