module Goraku::Client::Recorded
Public Instance Methods
delete_recorded_program(program_id)
click to toggle source
# File lib/goraku/client/recorded.rb, line 13 def delete_recorded_program(program_id) delete "/recorded/#{program_id}.json" end
recorded()
click to toggle source
# File lib/goraku/client/recorded.rb, line 5 def recorded get '/recorded.json' end
recorded_program(program_id)
click to toggle source
# File lib/goraku/client/recorded.rb, line 9 def recorded_program(program_id) get "/recorded/#{program_id}.json" end
recorded_program_file(program_id, format = 'json')
click to toggle source
# File lib/goraku/client/recorded.rb, line 17 def recorded_program_file(program_id, format = 'json') get "/recorded/#{program_id}/file.#{format}" end
recorded_program_preview(program_id, format = 'png', options = {})
click to toggle source
# File lib/goraku/client/recorded.rb, line 21 def recorded_program_preview(program_id, format = 'png', options = {}) raise StandardError.new unless ['png', 'jpg', 'txt'].include?(format) default_options = {pos: 7, width: 320, height: 180} options = options.merge(default_options) get "/recorded/#{program_id}/preview.#{format}", options end
watch_recorded_program(program_id)
click to toggle source
Not implemented
# File lib/goraku/client/recorded.rb, line 30 def watch_recorded_program(program_id) raise NotImplementedError.new end