class TrackerApi::Resources::Webhook
Public Instance Methods
delete()
click to toggle source
# File lib/tracker_api/resources/webhook.rb, line 23 def delete raise ArgumentError, 'Can not delete a webhook with an unknown project_id.' if project_id.nil? Endpoints::Webhook.new(client).delete(self) end
save()
click to toggle source
Save changes to an existing Webhook
.
# File lib/tracker_api/resources/webhook.rb, line 30 def save raise ArgumentError, 'Can not update a webhook with an unknown project_id.' if project_id.nil? Endpoints::Webhook.new(client).update(self, UpdateRepresenter.new(Webhook.new(self.dirty_attributes))) end