Class: Nexmo::Alerts

Inherits:
Namespace show all
Defined in:
lib/nexmo/alerts.rb

Instance Method Summary collapse

Methods inherited from Namespace

#initialize

Constructor Details

This class inherits a constructor from Nexmo::Namespace

Instance Method Details

#listObject



5
6
7
# File 'lib/nexmo/alerts.rb', line 5

def list
  request('/sc/us/alert/opt-in/query/json')
end

#remove(params) ⇒ Object Also known as: resubscribe



9
10
11
# File 'lib/nexmo/alerts.rb', line 9

def remove(params)
  request('/sc/us/alert/opt-in/manage/json', params: params, type: Post)
end

#send(params) ⇒ Object



15
16
17
# File 'lib/nexmo/alerts.rb', line 15

def send(params)
  request('/sc/us/alert/json', params: params, type: Post)
end