Class: Socialmod::Item::Text

Inherits:
Socialmod::Item show all
Defined in:
lib/socialmod/item.rb

Instance Method Summary collapse

Methods inherited from Socialmod::Item

#deferred?, #destroy, #failed?, find_by_custom_id, #flag!, #passed?, #pending?, sync, #update

Methods inherited from Base

api_key=, callback_url, callback_url=, #initialize

Constructor Details

This class inherits a constructor from Socialmod::Base

Instance Method Details

#after_initializeObject



67
68
69
# File 'lib/socialmod/item.rb', line 67

def after_initialize
  self.mime = "text/plain"
end

#src=(*a) ⇒ Object



71
72
73
# File 'lib/socialmod/item.rb', line 71

def src=(*a)
  raise "You can't set src for text moderation"
end