Class: Bandwidth::Error
- Inherits:
-
Object
- Object
- Bandwidth::Error
- Extended by:
- ClientWrapper
- Defined in:
- lib/bandwidth/error.rb
Overview
The User Errors resource lets you see information about errors that happened in your API calls and during applications callbacks.
Class Method Summary collapse
-
.get(client, id) ⇒ Hash
Gets information about one user error.
-
.list(client, query = nil) ⇒ Array
Gets all the user errors for a user.
Methods included from ClientWrapper
Class Method Details
.get(client, id) ⇒ Hash
Gets information about one user error
13 14 15 |
# File 'lib/bandwidth/error.rb', line 13 def self.get(client, id) client.make_request(:get, client.concat_user_path("#{ERROR_PATH}/#{id}"))[0] end |
.list(client, query = nil) ⇒ Array
Gets all the user errors for a user
24 25 26 |
# File 'lib/bandwidth/error.rb', line 24 def self.list(client, query = nil) client.make_request(:get, client.concat_user_path(ERROR_PATH), query)[0] end |