lib/mambanation/base.rb in mambanation-0.1.11 vs lib/mambanation/base.rb in mambanation-0.1.12
- old
+ new
@@ -148,9 +148,27 @@
#
def user_roles(id)
perform_get("/users/#{id.to_i}/roles.json")
end
+ #
+ # Users System Messages
+ #
+ def user_system_messages(id)
+ perform_get("/users/#{id.to_i}/system_messages.json")
+ end
+
+ def user_unread_system_messages(id)
+ perform_get("/users/#{id.to_i}/unread_system_messages.json")
+ end
+
+ #
+ # User Announcements
+ #
+ def announcements(id)
+ perform_get("/users/#{id.to_i}/announcements.json")
+ end
+
protected
def self.mime_type(file)
case
when file =~ /\.jpg/ then 'image/jpg'