Class: Teamlab::Feed

Inherits:
Object
  • Object
show all
Defined in:
lib/teamlab/modules/feed.rb

Instance Method Summary collapse

Constructor Details

#initialize(config = nil) ⇒ Feed

Returns a new instance of Feed.



5
6
7
# File 'lib/teamlab/modules/feed.rb', line 5

def initialize(config = nil)
  @request = Teamlab::Request.new(config, 'feed')
end

Instance Method Details

#filter_feed(filters) ⇒ Object

TODO: find out how it should work api.onlyoffice.com missing documentation



10
11
12
# File 'lib/teamlab/modules/feed.rb', line 10

def filter_feed(filters)
  @request.get(['filter'], filters)
end

#new_feeds_countObject



14
15
16
# File 'lib/teamlab/modules/feed.rb', line 14

def new_feeds_count
  @request.get(['newfeedscount'])
end

#read_feedObject

TODO: find out how it should work api.onlyoffice.com missing documentation



19
20
21
# File 'lib/teamlab/modules/feed.rb', line 19

def read_feed
  @request.put(['read'])
end