Class: JSONAPI::LinksObjectOperationResult

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, parent_resource, relationship, options = {}) ⇒ LinksObjectOperationResult


59
60
61
62
63
# File 'lib/jsonapi/operation_result.rb', line 59

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

Instance Attribute Details

#parent_resourceObject

Returns the value of attribute parent_resource


57
58
59
# File 'lib/jsonapi/operation_result.rb', line 57

def parent_resource
  @parent_resource
end

#relationshipObject

Returns the value of attribute relationship


57
58
59
# File 'lib/jsonapi/operation_result.rb', line 57

def relationship
  @relationship
end