Module: Goraku::Client::Recording

Included in:
Goraku::Client
Defined in:
lib/goraku/client/recording.rb

Instance Method Summary collapse

Instance Method Details

#recordingObject



5
6
7
# File 'lib/goraku/client/recording.rb', line 5

def recording
  get '/recording.json'
end

#recording_program(program_id) ⇒ Object



9
10
11
# File 'lib/goraku/client/recording.rb', line 9

def recording_program(program_id)
  get "/recording/#{program_id}.json"
end

#recording_program_preview(program_id, format = 'png') ⇒ Object

Raises:

  • (StandardError)


17
18
19
20
# File 'lib/goraku/client/recording.rb', line 17

def recording_program_preview(program_id, format = 'png')
  raise StandardError.new unless ['png', 'jpg', 'txt'].include?(format)
  get "recording/#{program_id}/preview.#{format}"
end

#stop_recording_program(program_id) ⇒ Object



13
14
15
# File 'lib/goraku/client/recording.rb', line 13

def stop_recording_program(program_id)
  delete "/recording/#{program_id}.json"
end

#watch_recording_program(program_id) ⇒ Object

Not implemented

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/goraku/client/recording.rb', line 23

def watch_recording_program(program_id)
  raise NotImplementedError.new
end