class TopTenIslands::Island

Constants

ALL

Attributes

discription[RW]
name[RW]
url[RW]

Public Class Methods

all() click to toggle source
# File lib/top_ten_islands/island.rb, line 17
def self.all
  ALL
end
new(name=nil, url=nil, discription=nil) click to toggle source
# File lib/top_ten_islands/island.rb, line 7
def initialize(name=nil, url=nil, discription=nil)
  @name = name
  @url = url
  ALL.push(self)
end

Public Instance Methods

get_discription() click to toggle source
# File lib/top_ten_islands/island.rb, line 13
def get_discription
  @discription ||= TopTenIslands::Scraper.get_island_discription(@url)
end