 # @option query [object] event
 # @option query [function] onSuccess
 # @option query [function] onError
-handleEvent = (query) ->
+# @private
+_handleEvent = (query) ->
 	id = (muRegex.exec query.url)[1]
-	getEvents
+	_getEvents
 		ids: [id]
 		onError: (error) ->
 			query.onError
 				error: error
 				module: 'meetup'
 		onSuccess: (muEvents) ->
-			event = parseEvent muEvents[0]
+			event = _parseEvent muEvents[0]
 			db.set
 				events: [event]
+				onSuccess: query.onSuccess
+				onError: query.onError
+
+
+# Handle Meetup group events
+# @param [object] query
+# @option query [object] event
+# @option query [function] onSuccess
+# @option query [function] onError
+# @private
+_handleGroupEvents = (query) ->
+	_getEvents
+		name: query.name
+		onError: (error) ->
+			query.onError
+				error: error
+				module: 'meetup'
+		onSuccess: (muEvents) ->
+			events = []
+			for event in muEvents
+				events.push _parseEvent event
+			db.set
+				events: events
 				onSuccess: query.onSuccess
 				onError: query.onError
 


# Parse a Meetup event JSON object
# @param [object] event
parseEvent = (event) ->
	title: event.name
	source: event.event_url
	date: new Date(event.time)


# Parse a Meetup group JSON object
# @param [object] group
_parseGroup = (group) ->
	id: "meetup-group-#{group.id}"
	source: group.link
	raw: group


# Handle a Meetup event add query
