Class: BandwidthIris::EmergencyNotificationGroups

Inherits:
Object
  • Object
show all
Extended by:
ClientWrapper
Includes:
ApiItem
Defined in:
lib/bandwidth-iris/emergency_notification_groups.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_group_order(client, data) ⇒ Object



9
10
11
12
# File 'lib/bandwidth-iris/emergency_notification_groups.rb', line 9

def self.create_emergency_notification_group_order(client, data)
  response = client.make_request(:post, "#{client.(ENG_ORDERS_PATH)}", {:emergency_notification_group_order => data})
  return response[0][:emergency_notification_endpoint_order]
end

.get_emergency_notification_group(client, eng_id) ⇒ Object



27
28
29
30
# File 'lib/bandwidth-iris/emergency_notification_groups.rb', line 27

def self.get_emergency_notification_group(client, eng_id)
  response = client.make_request(:get, "#{client.(ENG_PATH)}/#{eng_id}")
  return response[0][:emergency_notification_group]
end

.get_emergency_notification_group_order(client, order_id) ⇒ Object



21
22
23
24
# File 'lib/bandwidth-iris/emergency_notification_groups.rb', line 21

def self.get_emergency_notification_group_order(client, order_id)
  response = client.make_request(:get, "#{client.(ENG_ORDERS_PATH)}/#{order_id}")
  return response[0][:emergency_notification_endpoint_order]
end

.get_emergency_notification_group_orders(client, query = nil) ⇒ Object



15
16
17
18
# File 'lib/bandwidth-iris/emergency_notification_groups.rb', line 15

def self.get_emergency_notification_group_orders(client, query=nil)
  response = client.make_request(:get, "#{client.(ENG_ORDERS_PATH)}", query)
  return response[0]
end

.get_emergency_notification_groups(client, query = nil) ⇒ Object



33
34
35
36
# File 'lib/bandwidth-iris/emergency_notification_groups.rb', line 33

def self.get_emergency_notification_groups(client, query=nil)
  response = client.make_request(:get, "#{client.(ENG_PATH)}", query)
  return response[0]
end