Method: SparkApi::Models::Notification.mark_read
- Defined in:
- lib/spark_api/models/notification.rb
.mark_read(notifications, arguments = {}) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/spark_api/models/notification.rb', line 33 def self.mark_read(notifications, arguments={}) notifications = Array(notifications) ids = notifications.map { |n| n.respond_to?('Id') ? n.Id : n } result = connection.put "#{self.path}/#{ids.join(',')}", {'Read' => true}, arguments end |