Class: JSONAPI::ResourceOperationResult

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, resource, options = {}) ⇒ ResourceOperationResult


28
29
30
31
# File 'lib/jsonapi/operation_result.rb', line 28

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

Instance Attribute Details

#resourceObject

Returns the value of attribute resource


26
27
28
# File 'lib/jsonapi/operation_result.rb', line 26

def resource
  @resource
end