Method: BOTR::VideoCaption#delete
- Defined in:
- lib/botr/videos/video_caption.rb
#delete ⇒ BOTR::VideoCaption
Delete a video caption.
167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/botr/videos/video_caption.rb', line 167 def delete json = delete_request({:caption_key => @key}) res = JSON.parse(json.body) if json.status == 200 process_delete_response(res) else raise "HTTP Error #{json.status}: #{json.body}" end return self end |