Module: ActivityStream::Actor::ClassMethods

Defined in:
lib/activity_stream/actor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#defined_streamsObject

Returns the value of attribute defined_streams.



53
54
55
# File 'lib/activity_stream/actor.rb', line 53

def defined_streams
  @defined_streams
end

Instance Method Details

#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