class DropboxApi::Results::SearchV2Result
Public Instance Methods
cursor()
click to toggle source
Pass the cursor into search_continue to fetch the next page of results (not yet implemented). This field is optional.
# File lib/dropbox_api/results/search_v2_result.rb, line 20 def cursor @data['cursor'] end
has_more?()
click to toggle source
Used for paging. If true, indicates there is another page of results available that can be fetched by calling search again.
# File lib/dropbox_api/results/search_v2_result.rb, line 13 def has_more? @data['more'].to_s == 'true' end
matches()
click to toggle source
A list (possibly empty) of matches for the query.
# File lib/dropbox_api/results/search_v2_result.rb, line 5 def matches @matches ||= @data['matches'].map do |match| DropboxApi::Metadata::SearchMatchV2.new match end end