Class: OnTheSnow::API

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/onthesnow/api.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Helper

#build_profile_url_from_snow_resort_url, #profile, #remove_chars, #rss, #rss_url, #site_map_rss_url, #sitemap, #url

Class Method Details

.instanceObject



6
7
8
# File 'lib/onthesnow/api.rb', line 6

def self.instance
  @@instance ||= new
end

Instance Method Details

#regionsObject



10
11
12
# File 'lib/onthesnow/api.rb', line 10

def regions
  OnTheSnow::Region::Region.all
end

#resortsObject



18
19
20
# File 'lib/onthesnow/api.rb', line 18

def resorts
  OnTheSnow::Resort::Resort.all
end

#statesObject



14
15
16
# File 'lib/onthesnow/api.rb', line 14

def states
  OnTheSnow::State::State.all
end