class BoxrCollection

Public Instance Methods

files() click to toggle source
# File lib/boxr.rb, line 32
def files
  collection_for_type('file')
end
folders() click to toggle source
# File lib/boxr.rb, line 36
def folders
  collection_for_type('folder')
end

Private Instance Methods

collection_for_type(type) click to toggle source
# File lib/boxr.rb, line 46
def collection_for_type(type)
  items = select { |i| i.type == type }
  BoxrCollection.new(items)
end