Class: JSONAPI::RelatedResourcesOperationResult

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

Instance Attribute Summary collapse

Attributes inherited from ResourcesOperationResult

#page_count, #pagination_params, #record_count, #resources

Attributes inherited from OperationResult

#code, #links, #meta, #options

Instance Method Summary collapse

Constructor Details

#initialize(code, source_resource, type, resources, options = {}) ⇒ RelatedResourcesOperationResult

Returns a new instance of RelatedResourcesOperationResult


49
50
51
52
53
# File 'lib/jsonapi/operation_result.rb', line 49

def initialize(code, source_resource, type, resources, options = {})
  @source_resource = source_resource
  @_type = type
  super(code, resources, options)
end

Instance Attribute Details

#_typeObject

Returns the value of attribute _type


47
48
49
# File 'lib/jsonapi/operation_result.rb', line 47

def _type
  @_type
end

#source_resourceObject

Returns the value of attribute source_resource


47
48
49
# File 'lib/jsonapi/operation_result.rb', line 47

def source_resource
  @source_resource
end