Exception: Adcloud::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Adcloud::ApiError
show all
- Defined in:
- lib/adcloud/api_error.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(response) ⇒ ApiError
Returns a new instance of ApiError.
7
8
9
|
# File 'lib/adcloud/api_error.rb', line 7
def initialize(response)
self.response = response
end
|
Instance Attribute Details
Returns the value of attribute meta.
5
6
7
|
# File 'lib/adcloud/api_error.rb', line 5
def meta
@meta
end
|
#response ⇒ Object
Returns the value of attribute response.
5
6
7
|
# File 'lib/adcloud/api_error.rb', line 5
def response
@response
end
|
Instance Method Details
#details ⇒ Object
15
16
17
|
# File 'lib/adcloud/api_error.rb', line 15
def details
self.meta["details"]
end
|
#message ⇒ Object
23
24
25
|
# File 'lib/adcloud/api_error.rb', line 23
def message
self.meta["message"]
end
|
#status ⇒ Object
27
28
29
|
# File 'lib/adcloud/api_error.rb', line 27
def status
self.meta["status"]
end
|
#type ⇒ Object
19
20
21
|
# File 'lib/adcloud/api_error.rb', line 19
def type
self.meta["type"]
end
|