Class: Freshdesk::Resources::Contact

Inherits:
Base
  • Object
show all
Defined in:
lib/freshdesk/resources/contact.rb

Instance Method Summary collapse

Methods inherited from Base

#all, #create, #destroy, #find, #initialize, #update

Constructor Details

This class inherits a constructor from Freshdesk::Resources::Base

Instance Method Details

#hard_delete(id) ⇒ Object



10
11
12
# File 'lib/freshdesk/resources/contact.rb', line 10

def hard_delete(id)
  delete(File.join(self.class.collection_path, id.to_s, 'hard_delete'))
end

#restore(id) ⇒ Object



14
15
16
# File 'lib/freshdesk/resources/contact.rb', line 14

def restore(id)
  put(File.join(self.class.collection_path, id.to_s, 'restore'))
end