Sha256: 9f6a8d4c3e8f1d667caa8d2f2c6683ee1438dfe4d7f28045a2999a043377ca23
Contents?: true
Size: 431 Bytes
Versions: 2
Compression:
Stored size: 431 Bytes
Contents
require 'ivy/serializers/documents/document' module Ivy module Serializers module Documents class IndividualResource < Document def generate_linked(generator) @serializer.links(self, @primary_resource) super end def generate_primary_resource(generator) generator.primary_resource(@primary_resource_name, @primary_resource) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ivy-serializers-0.2.0 | lib/ivy/serializers/documents/individual_resource.rb |
ivy-serializers-0.1.0 | lib/ivy/serializers/documents/individual_resource.rb |