Module: OnTheSnow::Resort::Info

Included in:
Resort
Defined in:
lib/onthesnow/resort/info.rb

Instance Method Summary collapse

Instance Method Details

#infosObject



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

#nameObject



9
10
11
# File 'lib/onthesnow/resort/info.rb', line 9

def name
  @name ||= dom(:info).text unless dom(:info).empty?
end

#statesObject



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

#urlObject



17
18
19
# File 'lib/onthesnow/resort/info.rb', line 17

def url
  @url
end