Class: SkiMaps

Inherits:
Object
  • Object
show all
Defined in:
lib/study_the_map/ski_map.rb

Overview

require ‘./lib/study_the_map.rb’

Instance Attribute Summary collapse

Instance Method Summary collapse

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_infoObject

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_nameObject

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_countObject

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