Sha256: 4be1e09798d1779faea2bfbff346da5b8a0c422e24063bc9d13bed8db0a7a6a0
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
module ActiveFedora::Aggregation class Proxy < ActiveFedora::Base belongs_to :aggregator, predicate: ::RDF::Vocab::ORE.proxyIn, class_name: 'ActiveFedora::Aggregation::Proxy' belongs_to :target, predicate: ::RDF::Vocab::ORE.proxyFor, class_name: 'ActiveFedora::Base' belongs_to :next, predicate: ::RDF::Vocab::IANA.next, class_name: 'ActiveFedora::Aggregation::Proxy' belongs_to :prev, predicate: ::RDF::Vocab::IANA.prev, class_name: 'ActiveFedora::Aggregation::Proxy' def as_list if self.next [self] + self.next.as_list else [self] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activefedora-aggregation-0.1.0 | lib/active_fedora/aggregation/proxy.rb |