Class: MisarReach::NotificationsResource
- Defined in:
- lib/misar_reach/client.rb
Overview
── Resource: Notifications ──────────────────────────────────────────────────
Instance Method Summary collapse
- #list(params = {}) ⇒ Object
-
#mark_read(data) ⇒ Object
Mark notifications read.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from MisarReach::Resource
Instance Method Details
#list(params = {}) ⇒ Object
421 422 423 |
# File 'lib/misar_reach/client.rb', line 421 def list(params = {}) @client.request(:get, "/notifications#{qs(params)}") end |
#mark_read(data) ⇒ Object
Mark notifications read. Pass { ids: [...] } or { all: true }.
426 427 428 |
# File 'lib/misar_reach/client.rb', line 426 def mark_read(data) @client.request(:patch, "/notifications", data) end |