Class: Twilio::Notification

Inherits:
TwilioObject show all
Defined in:
lib/twilio/notification.rb

Overview

A Notification represenents a log entry made by Twilio in the course of handling your calls or using the REST API. Example:

Twilio.connect('my_twilio_sid', 'my_auth_token')
Twilio::Notification.list

Instance Attribute Summary

Attributes inherited from TwilioObject

#connection

Instance Method Summary collapse

Methods inherited from TwilioObject

#initialize, method_missing

Constructor Details

This class inherits a constructor from Twilio::TwilioObject

Instance Method Details

#delete(notification_sid) ⇒ Object



16
17
18
# File 'lib/twilio/notification.rb', line 16

def delete(notification_sid)
  Twilio.delete("/Notifications/#{notification_sid}")
end

#get(notification_sid) ⇒ Object



12
13
14
# File 'lib/twilio/notification.rb', line 12

def get(notification_sid)
  Twilio.get("/Notifications/#{notification_sid}")
end

#list(optional = {}) ⇒ Object



8
9
10
# File 'lib/twilio/notification.rb', line 8

def list(optional = {})
  Twilio.get('/Notifications', :query => optional)
end