Class: MisarReach::NotificationsResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/misar_reach/client.rb

Overview

── Resource: Notifications ──────────────────────────────────────────────────

Instance Method Summary collapse

Methods inherited from Resource

#initialize

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