Class: RDF::Serializers::ListSerializer

Inherits:
Object
  • Object
show all
Includes:
ObjectSerializer
Defined in:
lib/rdf/serializers/list_serializer.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ObjectSerializer

#dump, #triples

Class Method Details

.validate_includes!(_includes) ⇒ Object



15
# File 'lib/rdf/serializers/list_serializer.rb', line 15

def validate_includes!(_includes); end

Instance Method Details

#hextuples_for_collectionObject



8
9
10
11
12
# File 'lib/rdf/serializers/list_serializer.rb', line 8

def hextuples_for_collection
  @resource.map do |resource|
    RDF::Serializers.serializer_for(resource).record_hextuples(resource, nil, @includes, @params)
  end.flatten(1)
end