Class: JSONAPI::ErrorsOperationResult

Inherits:
OperationResult show all
Defined in:
lib/jsonapi/operation_result.rb

Instance Attribute Summary collapse

Attributes inherited from OperationResult

#code, #links, #meta, #options

Instance Method Summary collapse

Constructor Details

#initialize(code, errors, options = {}) ⇒ ErrorsOperationResult

Returns a new instance of ErrorsOperationResult


19
20
21
22
# File 'lib/jsonapi/operation_result.rb', line 19

def initialize(code, errors, options = {})
  @errors = errors
  super(code, options)
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors


17
18
19
# File 'lib/jsonapi/operation_result.rb', line 17

def errors
  @errors
end