class BandwidthIris::EmergencyNotificationRecipients

Public Class Methods

create_emergency_notification_recipient(client, data) click to toggle source
# File lib/bandwidth-iris/emergency_notification_recipients.rb, line 8
def self.create_emergency_notification_recipient(client, data)
  response = client.make_request(:post, "#{client.concat_account_path(ENR_PATH)}", {:emergency_notification_recipient => data})
  return response[0][:emergency_notification_recipient]
end
delete_emergency_notification_recipient(client, enr_id) click to toggle source
# File lib/bandwidth-iris/emergency_notification_recipients.rb, line 32
def self.delete_emergency_notification_recipient(client, enr_id)
  client.make_request(:delete, "#{client.concat_account_path(ENR_PATH)}/#{enr_id}")
end
get_emergency_notification_recipient(client, enr_id) click to toggle source
# File lib/bandwidth-iris/emergency_notification_recipients.rb, line 20
def self.get_emergency_notification_recipient(client, enr_id)
  response = client.make_request(:get, "#{client.concat_account_path(ENR_PATH)}/#{enr_id}")
  return response[0][:emergency_notification_recipient]
end
get_emergency_notification_recipients(client, query=nil) click to toggle source
# File lib/bandwidth-iris/emergency_notification_recipients.rb, line 14
def self.get_emergency_notification_recipients(client, query=nil)
  response = client.make_request(:get, "#{client.concat_account_path(ENR_PATH)}", query)
  return response[0]
end
replace_emergency_notification_recipient(client, enr_id, data) click to toggle source
# File lib/bandwidth-iris/emergency_notification_recipients.rb, line 26
def self.replace_emergency_notification_recipient(client, enr_id, data)
  response = client.make_request(:put, "#{client.concat_account_path(ENR_PATH)}/#{enr_id}", {:emergency_notification_recipient => data})
  return response[0][:emergency_notification_recipient]
end