Skip to content

Commit

Permalink
Get disconnect by ID (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
woodhull authored Jul 13, 2023
1 parent 0a0175f commit a39c0f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/bandwidth-iris/disconnect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a39c0f8

Please sign in to comment.