lib/foursquare2/events.rb in foursquare2-1.9.8 vs lib/foursquare2/events.rb in foursquare2-2.0.0

- old
+ new

@@ -3,18 +3,22 @@ # Retrieve information about an event # # param [String] event_id The ID of the event - def event(event_id) - response = connection.get("events/#{event_id}") + def event(event_id, options={}) + response = connection.get do |req| + req.url "events/#{event_id}", options + end return_error_or_body(response, response.body.response.event) end # Retrieve information about all event categories. - def event_categories - response = connection.get("events/categories") + def event_categories(options={}) + response = connection.get do |req| + req.url "events/categories", options + end return_error_or_body(response, response.body.response.categories) end end end