Module: OnTheSnow::Resort::Slopes
- Included in:
- Resort
- Defined in:
- lib/onthesnow/resort/slopes.rb
Instance Method Summary collapse
- #advanced_slopes ⇒ Object
- #beginner_slopes ⇒ Object
- #expert_slopes ⇒ Object
- #intermediate_slopes ⇒ Object
- #slopes ⇒ Object
Instance Method Details
#advanced_slopes ⇒ Object
17 18 19 |
# File 'lib/onthesnow/resort/slopes.rb', line 17 def advanced_slopes @advanced_slopes ||= dom(:slopes).search(".advanced").text.split.join unless dom(:slopes).empty? end |
#beginner_slopes ⇒ Object
9 10 11 |
# File 'lib/onthesnow/resort/slopes.rb', line 9 def beginner_slopes @beginner_slopes ||= dom(:slopes).search(".beginner").text.split.join unless dom(:slopes).empty? end |
#expert_slopes ⇒ Object
21 22 23 |
# File 'lib/onthesnow/resort/slopes.rb', line 21 def expert_slopes @expert_slopes ||= dom(:slopes).search(".expert").text.split.join unless dom(:slopes).empty? end |
#intermediate_slopes ⇒ Object
13 14 15 |
# File 'lib/onthesnow/resort/slopes.rb', line 13 def intermediate_slopes @intermediate_slopes ||= dom(:slopes).search(".intermediate").text.split.join unless dom(:slopes).empty? end |
#slopes ⇒ Object
5 6 7 |
# File 'lib/onthesnow/resort/slopes.rb', line 5 def slopes @slopes ||= {"beginner" => beginner_slopes, "intermediate" => intermediate_slopes, "advanced" => advanced_slopes, "expert" => expert_slopes} unless dom(:slopes).empty? end |