Class: Nexmo::Alerts

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

Instance Method Summary collapse

Methods inherited from Namespace

authentication, authentication=, host, host=, #initialize, request_body, request_body=

Constructor Details

This class inherits a constructor from Nexmo::Namespace

Instance Method Details

#listObject



7
8
9
# File 'lib/nexmo/alerts.rb', line 7

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

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



11
12
13
# File 'lib/nexmo/alerts.rb', line 11

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

#send(params) ⇒ Object



17
18
19
# File 'lib/nexmo/alerts.rb', line 17

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