class ActiveTriples::ExtensionStrategy
Default property applying strategy which just copies all configured properties from a data property to a new resource, assuming it supports the property interface.
Public Class Methods
apply(resource, property)
click to toggle source
@param [ActiveTriples::Resource, property] resource A resource to copy
the property to.
@param [ActiveTriples::Property] property The property to copy.
# File lib/active_triples/extension_strategy.rb, line 12 def apply(resource, property) resource.property(property.name, property.to_h, &property.config) end