class Nimbu::Endpoints::Collections
Public Instance Methods
create(*args)
click to toggle source
# File lib/nimbu-api/endpoints/collections.rb, line 22 def create(*args) arguments(args) post_request("/collections", arguments.params) end
delete(*args)
click to toggle source
# File lib/nimbu-api/endpoints/collections.rb, line 35 def delete(*args) arguments(args, :required => [:collection_id]) delete_request("/collections/#{collection_id}", arguments.params) end
Also aliased as: remove
get(*args)
click to toggle source
# File lib/nimbu-api/endpoints/collections.rb, line 15 def get(*args) arguments(args, :required => [:collection_id]) get_request("/collections/#{collection_id}", arguments.params) end
Also aliased as: find
list(*args) { |el| ... }
click to toggle source
# File lib/nimbu-api/endpoints/collections.rb, line 6 def list(*args) arguments(args) response = get_request("/collections", arguments.params) return response unless block_given? response.each { |el| yield el } end
Also aliased as: all
update(*args)
click to toggle source
# File lib/nimbu-api/endpoints/collections.rb, line 28 def update(*args) arguments(args, :required => [:collection_id]) patch_request("/collections/#{collection_id}", arguments.params) end
Also aliased as: edit