diff --git a/lib/bandwidth-iris/disconnect.rb b/lib/bandwidth-iris/disconnect.rb index bad649f..d20c0fe 100644 --- a/lib/bandwidth-iris/disconnect.rb +++ b/lib/bandwidth-iris/disconnect.rb @@ -21,6 +21,12 @@ def self.create(client, order_name, numbers) end wrap_client_arg :create + def self.get(client, id) + data = client.make_request(:get, "#{client.concat_account_path(DISCONNECT_PATH)}/#{id}") + data + end + wrap_client_arg :get + def get_notes() list = @client.make_request(:get, "#{@client.concat_account_path(DISCONNECT_PATH)}/#{id}/notes")[0][:note] return [] if !list