Sha256: 0e6cb4848a5b4708dce69c166c42a87c4f3b89975444bae62eb012f37769c572

Contents?: true

Size: 368 Bytes

Versions: 16

Compression:

Stored size: 368 Bytes

Contents

module Ldp
  class Container::Indirect < Container::Direct
    def members
      return enum_for(:members) unless block_given?

      response_graph.query(predicate: member_relation, object: subject).map do |x|
        yield rdf_source_for(x.object)
      end
    end

    protected

    def interaction_model
      RDF::Vocab::LDP.IndirectContainer
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ldp-1.2.1 lib/ldp/container/indirect.rb
ldp-1.2.0 lib/ldp/container/indirect.rb
ldp-1.1.0 lib/ldp/container/indirect.rb
ldp-1.0.3 lib/ldp/container/indirect.rb
ldp-1.0.2 lib/ldp/container/indirect.rb
ldp-1.0.1 lib/ldp/container/indirect.rb
ldp-1.0.0 lib/ldp/container/indirect.rb
ldp-0.7.2 lib/ldp/container/indirect.rb
ldp-0.7.1 lib/ldp/container/indirect.rb
ldp-0.7.0 lib/ldp/container/indirect.rb
ldp-0.6.4 lib/ldp/container/indirect.rb
ldp-0.6.3 lib/ldp/container/indirect.rb
ldp-0.6.2 lib/ldp/container/indirect.rb
ldp-0.6.1 lib/ldp/container/indirect.rb
ldp-0.6.0 lib/ldp/container/indirect.rb
ldp-0.5.0 lib/ldp/container/indirect.rb