Module: Goraku::Client::Reserves
- Included in:
- Goraku::Client
- Defined in:
- lib/goraku/client/reserves.rb
Instance Method Summary collapse
- #delete_reserved_program(program_id) ⇒ Object
- #reserves ⇒ Object
- #reserves_program(program_id) ⇒ Object
- #skip_reserved_program(program_id) ⇒ Object
- #unskip_reserved_program(program_id) ⇒ Object
Instance Method Details
#delete_reserved_program(program_id) ⇒ Object
13 14 15 |
# File 'lib/goraku/client/reserves.rb', line 13 def delete_reserved_program(program_id) delete "/reserves/#{program_id}.json" end |
#reserves ⇒ Object
5 6 7 |
# File 'lib/goraku/client/reserves.rb', line 5 def reserves get '/reserves.json' end |
#reserves_program(program_id) ⇒ Object
9 10 11 |
# File 'lib/goraku/client/reserves.rb', line 9 def reserves_program(program_id) get "/reserves/#{program_id}.json" end |
#skip_reserved_program(program_id) ⇒ Object
17 18 19 |
# File 'lib/goraku/client/reserves.rb', line 17 def skip_reserved_program(program_id) put "/reserves/#{program_id}/skip.json" end |
#unskip_reserved_program(program_id) ⇒ Object
21 22 23 |
# File 'lib/goraku/client/reserves.rb', line 21 def unskip_reserved_program(program_id) put "/reserves/#{program_id}/unskip.json" end |