Module: OnTheSnow::Resort::Info
- Included in:
- Resort
- Defined in:
- lib/onthesnow/resort/info.rb
Instance Method Summary collapse
Instance Method Details
#infos ⇒ Object
5 6 7 |
# File 'lib/onthesnow/resort/info.rb', line 5 def infos @infos ||= {"name" => name, "states" => states, "url" => url} unless dom(:info).empty? && dom(:states).empty? end |
#name ⇒ Object
9 10 11 |
# File 'lib/onthesnow/resort/info.rb', line 9 def name @name ||= dom(:info).text unless dom(:info).empty? end |
#states ⇒ Object
13 14 15 |
# File 'lib/onthesnow/resort/info.rb', line 13 def states @states ||= dom(:states).map{|e| e.text} unless dom(:states).empty? end |
#url ⇒ Object
17 18 19 |
# File 'lib/onthesnow/resort/info.rb', line 17 def url @url end |