lib/ruby-box/folder.rb in ruby-box-1.1.2 vs lib/ruby-box/folder.rb in ruby-box-1.2.0

- old
+ new

@@ -14,9 +14,15 @@ items(item_limit, offset).select do |item| item.kind_of? RubyBox::Folder and (name.nil? or item.name == name) end end + def collaborations(item_limit=100, offset=0) + items(item_limit, offset).select do |item| + item.kind_of? RubyBox::Collaboration + end + end + def upload_file(filename, data) file = RubyBox::File.new(@session, { 'name' => filename, 'parent' => RubyBox::User.new(@session, {'id' => id}) }) \ No newline at end of file