Class: Databasedotcom::Chatter::FilterFeed

Inherits:
Feed show all
Defined in:
lib/databasedotcom/chatter/filter_feed.rb

Overview

Filter feeds contain items pertaining to both a user and another specified resource.

Instance Attribute Summary

Attributes inherited from Databasedotcom::Collection

#client, #current_page_url, #next_page_url, #previous_page_url, #total_size

Class Method Summary collapse

Methods inherited from Feed

find, post, post_file

Methods inherited from Databasedotcom::Collection

#initialize, #next_page, #next_page?, #previous_page, #previous_page?

Constructor Details

This class inherits a constructor from Databasedotcom::Collection

Class Method Details

.feeds(client, user_id = "me") ⇒ Object

Lists all FilterFeeds for the user with id user_id.



7
8
9
10
11
# File 'lib/databasedotcom/chatter/filter_feed.rb', line 7

def self.feeds(client, user_id="me")
  url = "/services/data/v#{client.version}/chatter/feeds/filter/#{user_id}"
  result = client.http_get(url)
  JSON.parse(result.body)
end