Method: CloudApp::Drop.all
- Defined in:
- lib/cloudapp/drop.rb
.all(opts = {}) ⇒ Array[CloudApp::Drop]
Page through your drops.
Requires authentication.
77 78 79 80 |
# File 'lib/cloudapp/drop.rb', line 77 def self.all(opts = {}) res = get "/items", {:query => (opts.empty? ? nil : opts), :digest_auth => @@auth} res.ok? ? res.collect{|i| Drop.new(i)} : bad_response(res) end |