Class: Rave::Models::Event::BlipContributorsChanged
- Inherits:
-
Rave::Models::Event
- Object
- Rave::Models::Event
- Rave::Models::Event::BlipContributorsChanged
- Defined in:
- lib/models/event.rb
Overview
Blip events
Constant Summary collapse
- ADDED =
:nodoc:
'contributorsAdded'
- REMOVED =
:nodoc:
'contributorsRemoved'
Constants inherited from Rave::Models::Event
Constants included from Rave::Mixins::ObjectFactory
Rave::Mixins::ObjectFactory::WILDCARD
Instance Attribute Summary
Attributes included from Rave::Mixins::ObjectFactory
Instance Method Summary collapse
-
#contributors_added ⇒ Object
Array of contributors added to the wavelet [Array of User].
-
#contributors_removed ⇒ Object
Array of contributors removed from the wavelet [Array of User].
-
#initialize(options = {}) ⇒ BlipContributorsChanged
constructor
:nodoc:.
Methods inherited from Rave::Models::Event
#blip, #blip_id, #modified_by, #timestamp, #wavelet
Methods included from Rave::Mixins::ObjectFactory
Methods included from Rave::Mixins::TimeUtils
Constructor Details
#initialize(options = {}) ⇒ BlipContributorsChanged
:nodoc:
146 147 148 149 150 151 |
# File 'lib/models/event.rb', line 146 def initialize( = {}) # :nodoc: super() add_user_ids(@properties[ADDED]) if @properties[ADDED] add_user_ids(@properties[REMOVED]) if @properties[REMOVED] end |
Instance Method Details
#contributors_added ⇒ Object
Array of contributors added to the wavelet [Array of User].
154 155 156 |
# File 'lib/models/event.rb', line 154 def contributors_added # :nodoc: @properties[ADDED].map { |id| @context.users[id] } end |
#contributors_removed ⇒ Object
Array of contributors removed from the wavelet [Array of User].
159 160 161 |
# File 'lib/models/event.rb', line 159 def contributors_removed # :nodoc: @properties[REMOVED].map { |id| @context.users[id] } end |