Class: ActiveCMIS::Folder
Instance Attribute Summary
Attributes inherited from Object
#key, #repository, #updated_attributes
Instance Method Summary collapse
-
#items ⇒ Collection<Document,Folder,Policy>
Returns a collection of all items contained in this folder (1 level deep).
Methods inherited from Object
#acl, #allowable_actions, #attribute, attributes, #attributes, #file, from_atom_entry, from_parameters, #id, #initialize, #inspect, key, #method_missing, #name, #parent_folders, #reload, #save, #source_relations, #target_relations, #unfile, #update
Methods included from Internal::Caching
Constructor Details
This class inherits a constructor from ActiveCMIS::Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ActiveCMIS::Object
Instance Method Details
#items ⇒ Collection<Document,Folder,Policy>
Returns a collection of all items contained in this folder (1 level deep)
5 6 7 8 9 |
# File 'lib/active_cmis/folder.rb', line 5 def items item_feed = Internal::Utils.extract_links(data, 'down', 'application/atom+xml','type' => 'feed') raise "No child feed link for folder" if item_feed.empty? Collection.new(repository, item_feed.first) end |