Sha256: 812836eb16585aadea5fc1ae68b5b11e846a6a90adb33950b0ec4437d700603d
Contents?: true
Size: 604 Bytes
Versions: 32
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true module Wings ## # A mixin for `ActiveFedora::Base` models providing a convenience method # mapping to a valkyrie resource. # # @example # GenericWork.include Wings::Valkyrizable # # work = GenericWork.new(title: ['Comet in Moominland']) # resource = work.valkyrie_resource # # resource.title # => ['Comet in Moominland'] # # @see Wings::ModelTransformer module Valkyrizable ## # @return [Valkyrie::Resource] a valkyrie resource matching this model def valkyrie_resource ModelTransformer.for(self) end end end
Version data entries
32 entries across 32 versions & 1 rubygems