Class: DropboxApi::Results::ListFolderResult
- Defined in:
- lib/dropbox_api/results/list_folder_result.rb
Instance Method Summary collapse
-
#cursor ⇒ Object
Pass the cursor into ‘list_folder_continue` to see what’s changed in the folder since your previous query.
-
#entries ⇒ Object
A collection of files and directories.
-
#has_more? ⇒ Boolean
If true, then there are more entries available.
Methods inherited from Base
Constructor Details
This class inherits a constructor from DropboxApi::Results::Base
Instance Method Details
#cursor ⇒ Object
Pass the cursor into ‘list_folder_continue` to see what’s changed in the folder since your previous query.
12 13 14 |
# File 'lib/dropbox_api/results/list_folder_result.rb', line 12 def cursor @data["cursor"] end |
#entries ⇒ Object
A collection of files and directories.
4 5 6 7 8 |
# File 'lib/dropbox_api/results/list_folder_result.rb', line 4 def entries @entries ||= @data["entries"].map do |entry| DropboxApi::Metadata::Resource.new entry end end |
#has_more? ⇒ Boolean
If true, then there are more entries available. Pass the cursor to ‘list_folder_continue` to retrieve the rest.
18 19 20 |
# File 'lib/dropbox_api/results/list_folder_result.rb', line 18 def has_more? @data["has_more"].to_s == "true" end |