Class: Rapid::Baps::Responses::Handlers::Delete

Inherits:
Handler show all
Defined in:
lib/ury_rapid/baps/responses/handlers/playlist.rb

Overview

Abstract class for playlist deletion handlers

Subclasses should define sub_url, which defines the URL path from the playlist that should be deleted.

Direct Known Subclasses

DeleteItem, DeletePlaylist

Instance Method Summary collapse

Methods inherited from Services::Responses::Handler

#initialize, #kill_if_exists

Methods inherited from Services::Handler

def_targets, #initialize, register_into, #targets, targets?, use_poster

Constructor Details

This class inherits a constructor from Rapid::Services::Responses::Handler

Instance Method Details

#runObject


13
14
15
# File 'lib/ury_rapid/baps/responses/handlers/playlist.rb', line 13

def run
  kill(playlist_url(*sub_url))
end