Class: Skydrive::Folder
Overview
The folder object
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
-
#delete ⇒ Object
Delete the folder.
-
#files(options = {}) ⇒ Skydrive::Collection
Items in the folder.
-
#photos(options = {}) ⇒ Skydrive::Collection
Get all the photos in the folder.
-
#update(options = {}) ⇒ Skydrive::Folder
Update the folder properties.
-
#videos(options = {}) ⇒ Skydrive::Collection
Get all the videos in the folder.
Methods inherited from Object
#comment, #comments, #created_time, #description, #from, #id, #initialize, #is_embeddable?, #link, #name, #parent_id, #shared_with, #to_hash, #to_json, #type, #updated_time, #upload_location
Constructor Details
This class inherits a constructor from Skydrive::Object
Instance Method Details
#delete ⇒ Object
Delete the folder
39 40 41 |
# File 'lib/skydrive/folder.rb', line 39 def delete client.delete("/#{id}") end |
#files(options = {}) ⇒ Skydrive::Collection
Items in the folder
12 13 14 |
# File 'lib/skydrive/folder.rb', line 12 def files ={} response = client.get("/#{id}/files") end |
#photos(options = {}) ⇒ Skydrive::Collection
Get all the photos in the folder
23 24 25 |
# File 'lib/skydrive/folder.rb', line 23 def photos ={} response = client.get("/#{id}/photos", ) end |
#update(options = {}) ⇒ Skydrive::Folder
Update the folder properties
48 49 50 |
# File 'lib/skydrive/folder.rb', line 48 def update ={} client.put("/#{id}", ) end |
#videos(options = {}) ⇒ Skydrive::Collection
Get all the videos in the folder
34 35 36 |
# File 'lib/skydrive/folder.rb', line 34 def videos ={} response = client.get("/#{id}/videos", ) end |