Method: ActivityStream::Actor::ClassMethods#activity_stream

Defined in:
lib/activity_stream/actor.rb

#activity_stream(name, opts = {}) ⇒ Object

Creates an activity_stream instance method that fetches all recent activity

Parameters:

  • the name for the sub stream you wish to access



60
61
62
63
64
# File 'lib/activity_stream/actor.rb', line 60

def activity_stream(name, opts = {})
  self.defined_streams ||= {}
  self.defined_streams[name.to_sym] = opts
  return nil
end