Class: TopTenIslandsCliGem::Island
- Inherits:
-
Object
- Object
- TopTenIslandsCliGem::Island
- Defined in:
- lib/top_ten_islands_cli_gem/island.rb
Constant Summary collapse
- ALL =
[]
Instance Attribute Summary collapse
-
#discription ⇒ Object
Returns the value of attribute discription.
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
- #get_discription ⇒ Object
-
#initialize(name = nil, url = nil, discription = nil) ⇒ Island
constructor
A new instance of Island.
Constructor Details
Instance Attribute Details
#discription ⇒ Object
Returns the value of attribute discription.
3 4 5 |
# File 'lib/top_ten_islands_cli_gem/island.rb', line 3 def discription @discription end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/top_ten_islands_cli_gem/island.rb', line 3 def name @name end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/top_ten_islands_cli_gem/island.rb', line 3 def url @url end |
Class Method Details
.all ⇒ Object
17 18 19 |
# File 'lib/top_ten_islands_cli_gem/island.rb', line 17 def self.all ALL end |
Instance Method Details
#get_discription ⇒ Object
13 14 15 |
# File 'lib/top_ten_islands_cli_gem/island.rb', line 13 def get_discription @discription ||= TopTenIslandsCliGem::Scraper.get_island_discription(@url) end |