Class: SkiMaps
- Inherits:
-
Object
- Object
- SkiMaps
- Defined in:
- lib/study_the_map/ski_map.rb
Overview
require ‘./lib/study_the_map.rb’
Instance Attribute Summary collapse
-
#area_info ⇒ Object
Returns the value of attribute area_info.
-
#area_name ⇒ Object
Returns the value of attribute area_name.
-
#map_count ⇒ Object
Returns the value of attribute map_count.
Instance Method Summary collapse
-
#initialize(area_name) ⇒ SkiMaps
constructor
A new instance of SkiMaps.
Constructor Details
#initialize(area_name) ⇒ SkiMaps
Returns a new instance of SkiMaps.
7 8 9 10 11 12 13 14 15 |
# File 'lib/study_the_map/ski_map.rb', line 7 def initialize(area_name) @area_name = area_name @area_info = SkiMapScraper.new(area_name) @map_count = @area_info.map_count end |
Instance Attribute Details
#area_info ⇒ Object
Returns the value of attribute area_info.
5 6 7 |
# File 'lib/study_the_map/ski_map.rb', line 5 def area_info @area_info end |
#area_name ⇒ Object
Returns the value of attribute area_name.
5 6 7 |
# File 'lib/study_the_map/ski_map.rb', line 5 def area_name @area_name end |
#map_count ⇒ Object
Returns the value of attribute map_count.
5 6 7 |
# File 'lib/study_the_map/ski_map.rb', line 5 def map_count @map_count end |