Class: BandwidthIris::EmergencyNotificationRecipients

Inherits:
Object
  • Object
show all
Extended by:
ClientWrapper
Includes:
ApiItem
Defined in:
lib/bandwidth-iris/emergency_notification_recipients.rb

Class Method Summary collapse

Methods included from ClientWrapper

wrap_client_arg

Methods included from ApiItem

#[], #[]=, #initialize, #to_data

Class Method Details

.create_emergency_notification_recipient(client, data) ⇒ Object



8
9
10
11
# File 'lib/bandwidth-iris/emergency_notification_recipients.rb', line 8

def self.create_emergency_notification_recipient(client, data)
  response = client.make_request(:post, "#{client.(ENR_PATH)}", {:emergency_notification_recipient => data})
  return response[0][:emergency_notification_recipient]
end

.delete_emergency_notification_recipient(client, enr_id) ⇒ Object



32
33
34
# File 'lib/bandwidth-iris/emergency_notification_recipients.rb', line 32

def self.delete_emergency_notification_recipient(client, enr_id)
  client.make_request(:delete, "#{client.(ENR_PATH)}/#{enr_id}")
end

.get_emergency_notification_recipient(client, enr_id) ⇒ Object



20
21
22
23
# 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.(ENR_PATH)}/#{enr_id}")
  return response[0][:emergency_notification_recipient]
end

.get_emergency_notification_recipients(client, query = nil) ⇒ Object



14
15
16
17
# 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.(ENR_PATH)}", query)
  return response[0]
end

.replace_emergency_notification_recipient(client, enr_id, data) ⇒ Object



26
27
28
29
# 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.(ENR_PATH)}/#{enr_id}", {:emergency_notification_recipient => data})
  return response[0][:emergency_notification_recipient]
end