def add_resource_fragment(fragment, include_related)
      init_included_relationships(fragment, include_related)

      fragment.related_from.each do |rid|
        @source_resource_id_tree.fragments[rid].add_related_identity(parent_relationship.name, fragment.identity)
      end

      @fragments[fragment.identity] = fragment
    end
def add_resource_fragment(fragment, include_related)
      init_included_relationships(fragment, include_related)

      fragment.related_from.each do |rid|
        @source_resource_id_tree.fragments[rid].add_related_identity(parent_relationship.name, fragment.identity)
      end

      @fragments[fragment.identity] = fragment
    end
Adds a Resource Fragment to the fragments hash

 @param fragment [JSONAPI::ResourceFragment]
 @param include_related [Hash]

 @return [null]