Class: DataDomeResponseError
- Inherits:
-
DataDomeResponse
- Object
- DataDomeResponse
- DataDomeResponseError
- Defined in:
- lib/model/api/response.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Attributes inherited from DataDomeResponse
Instance Method Summary collapse
-
#initialize(action, status, message, errors) ⇒ DataDomeResponseError
constructor
A new instance of DataDomeResponseError.
- #to_json(options = {}) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(action, status, message, errors) ⇒ DataDomeResponseError
Returns a new instance of DataDomeResponseError.
71 72 73 74 75 |
# File 'lib/model/api/response.rb', line 71 def initialize(action, status, , errors) super(action, status) = @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
69 70 71 |
# File 'lib/model/api/response.rb', line 69 def errors @errors end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
69 70 71 |
# File 'lib/model/api/response.rb', line 69 def end |
Instance Method Details
#to_json(options = {}) ⇒ Object
81 82 83 84 85 86 87 88 |
# File 'lib/model/api/response.rb', line 81 def to_json( = {}) { action: @action, status: @status, message: , errors: @errors, }.to_json end |
#to_s ⇒ Object
77 78 79 |
# File 'lib/model/api/response.rb', line 77 def to_s "DataDomeResponseError: action=#{@action}, status=#{@status}, message=#{@message}, errors=#{@errors}" end |