Module: Upcoming

Defined in:
lib/upcoming.rb,
lib/upcoming/auth.rb,
lib/upcoming/user.rb,
lib/upcoming/event.rb,
lib/upcoming/group.rb,
lib/upcoming/metro.rb,
lib/upcoming/state.rb,
lib/upcoming/venue.rb,
lib/upcoming/country.rb,
lib/upcoming/category.rb,
lib/upcoming/watchlist.rb

Defined Under Namespace

Modules: Defaults Classes: APIKeyNotSet, Auth, Category, Country, Event, Group, Metro, State, User, Venue, Watchlist

Class Method Summary collapse

Class Method Details

.api_keyObject



23
24
25
# File 'lib/upcoming.rb', line 23

def self.api_key
  @api_key
end

.api_key=(value) ⇒ Object



19
20
21
# File 'lib/upcoming.rb', line 19

def self.api_key=(value)
  @api_key = value
end

.default_optionsObject



27
28
29
30
# File 'lib/upcoming.rb', line 27

def self.default_options
  raise Upcoming::APIKeyNotSet.new("Please get your API key from http://upcoming.yahoo.com/services/api/keygen.php") if self.api_key.blank?
  {:api_key => self.api_key, :format => 'json'}
end