Module: Redd::Thing::Editable

Included in:
Object::Comment, Object::Submission
Defined in:
lib/redd/thing/editable.rb

Instance Method Summary collapse

Instance Method Details

#deleteObject



6
7
8
# File 'lib/redd/thing/editable.rb', line 6

def delete
  client.delete(self)
end

#edit(text) ⇒ Object



10
11
12
# File 'lib/redd/thing/editable.rb', line 10

def edit(text)
  client.edit(self, text)
end