Class: Tikkie::Api::V1::Responses::Error
- Inherits:
-
Base
- Object
- Base
- Tikkie::Api::V1::Responses::Error
show all
- Defined in:
- lib/tikkie/api/v1/responses/error.rb
Overview
Error response from Tikkie.
Instance Attribute Summary
Attributes inherited from Base
#data, #response
Instance Method Summary
collapse
Methods inherited from Base
#error?, #errors, #initialize, #response_code, #success?
Instance Method Details
#category ⇒ Object
29
30
31
|
# File 'lib/tikkie/api/v1/responses/error.rb', line 29
def category
data[:category]
end
|
#code ⇒ Object
9
10
11
|
# File 'lib/tikkie/api/v1/responses/error.rb', line 9
def code
data[:code]
end
|
#message ⇒ Object
13
14
15
|
# File 'lib/tikkie/api/v1/responses/error.rb', line 13
def message
data[:message]
end
|
#reference ⇒ Object
17
18
19
|
# File 'lib/tikkie/api/v1/responses/error.rb', line 17
def reference
data[:reference]
end
|
#status ⇒ Object
25
26
27
|
# File 'lib/tikkie/api/v1/responses/error.rb', line 25
def status
data[:status]
end
|
#trace_id ⇒ Object
21
22
23
|
# File 'lib/tikkie/api/v1/responses/error.rb', line 21
def trace_id
data[:traceId]
end
|