class Databasedotcom::Chatter::FeedItem
An item in a Feed
.
Protected Class Methods
collection_from_response(response)
click to toggle source
# File lib/databasedotcom/chatter/feed_item.rb, line 35 def self.collection_from_response(response) response["items"] end
Public Instance Methods
comment(text)
click to toggle source
comments()
click to toggle source
Returns a Collection
of comments that were posted on this FeedItem
instance.
# File lib/databasedotcom/chatter/feed_item.rb, line 10 def comments collection = Databasedotcom::Collection.new(self.client, self.raw_hash["comments"]["total"], self.raw_hash["comments"]["nextPageUrl"], nil, self.raw_hash["comments"]["currentPageUrl"]) collection.concat(self.raw_hash["comments"]["comments"]) end
like()
click to toggle source
likes()
click to toggle source
Returns a Collection
of likes for this FeedItem
instance.
# File lib/databasedotcom/chatter/feed_item.rb, line 16 def likes collection = Databasedotcom::Collection.new(self.client, self.raw_hash["likes"]["total"], self.raw_hash["likes"]["nextPageUrl"], self.raw_hash["likes"]["previousPageUrl"], self.raw_hash["likes"]["currentPageUrl"]) collection.concat(self.raw_hash["likes"]["likes"]) end