module Unloq::Activity
Public Instance Methods
activity(author, limit: 10)
click to toggle source
Fetch activity for an author or author type
@param author [Unloq::Entity] The author for which to fetch activity. @param limit [Integer] The limit of number of records to return, defaults to 10.
# File lib/unloq/activity.rb, line 9 def activity author, limit: 10 validate_author(author) get('/activity', "/#{author.type}/#{author.id}", additional_options: { limit: limit }) end