Module: ChiliPlayer::Videos
- Included in:
- Init
- Defined in:
- lib/chili_player/videos.rb
Overview
videos module
Instance Method Summary collapse
- #all_videos ⇒ Object
- #delete(video_id) ⇒ Object
- #get_video(video_id) ⇒ Object
- #upload(name, video) ⇒ Object
Instance Method Details
#all_videos ⇒ Object
9 10 11 |
# File 'lib/chili_player/videos.rb', line 9 def all_videos RestClient.get(links_url, header_request) end |
#delete(video_id) ⇒ Object
21 22 23 |
# File 'lib/chili_player/videos.rb', line 21 def delete(video_id) RestClient.delete(links_url + video_id.to_s, header_request) end |
#get_video(video_id) ⇒ Object
13 14 15 |
# File 'lib/chili_player/videos.rb', line 13 def get_video(video_id) RestClient.get(links_url + video_id.to_s, header_request) end |
#upload(name, video) ⇒ Object
17 18 19 |
# File 'lib/chili_player/videos.rb', line 17 def upload(name, video) RestClient.post(links_url, params(name, video), header_request) end |