Module: ActivityStream::Actor::ClassMethods
- Defined in:
- lib/activity_stream/actor.rb
Instance Attribute Summary collapse
-
#defined_streams ⇒ Object
Returns the value of attribute defined_streams.
Instance Method Summary collapse
-
#activity_stream(name, opts = {}) ⇒ Object
Creates an activity_stream instance method that fetches all recent activity.
Instance Attribute Details
#defined_streams ⇒ Object
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
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 |