lib/event.rb in inbox-0.17.4 vs lib/event.rb in inbox-0.18.0
- old
+ new
@@ -28,7 +28,20 @@
end
return hash
end
+ def rsvp!(status, comment)
+ url = @_api.url_for_path("/n/#{@namespace_id}/send-rsvp")
+ data = {:event_id => @id, :status => status, :comment => comment}
+
+ ::RestClient.post(url, data.to_json, :content_type => :json) do |response, request, result|
+ json = Inbox.interpret_response(result, response, :expected_class => Object)
+ self.inflate(json)
+ end
+
+ self
+ end
+
+
end
end