Class: Rave::Models::Event::BlipDeleted

Inherits:
Rave::Models::Event show all
Defined in:
lib/models/event.rb

Overview

#blip will be nil, but #blip_id will give a sensible value.

Constant Summary

Constants inherited from Rave::Models::Event

BLIP_ID

Constants included from Rave::Mixins::ObjectFactory

Rave::Mixins::ObjectFactory::WILDCARD

Instance Attribute Summary

Attributes included from Rave::Mixins::ObjectFactory

#type

Instance Method Summary collapse

Methods inherited from Rave::Models::Event

#blip, #modified_by, #timestamp, #wavelet

Methods included from Rave::Mixins::ObjectFactory

included

Methods included from Rave::Mixins::TimeUtils

#time_from_json

Constructor Details

#initialize(options = {}) ⇒ BlipDeleted

:nodoc:



178
179
180
181
182
183
# File 'lib/models/event.rb', line 178

def initialize(options = {}) # :nodoc:
  super(options)

  # Ensure a referenced blip is properly deleted. Destroyed blip won't exist.
  blip.delete_me(false) if @properties[BLIP_ID] and blip
end

Instance Method Details

#blip_idObject

ID of the blip that was deleted [String] – This dummy method just added for the purposes of rdoc.



174
175
176
# File 'lib/models/event.rb', line 174

def blip_id # :nodoc:
  super
end