Class: Telephony::PlayableListenersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Telephony::PlayableListenersController
- Defined in:
- app/controllers/telephony/playable_listeners_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
21 22 23 24 25 |
# File 'app/controllers/telephony/playable_listeners_controller.rb', line 21 def create listener = PlayableListener.register params render status: :created, json: listener end |
#index ⇒ Object
9 10 11 12 13 |
# File 'app/controllers/telephony/playable_listeners_controller.rb', line 9 def index listeners = PlayableListener.filter params render json: listeners end |
#recent ⇒ Object
15 16 17 18 19 |
# File 'app/controllers/telephony/playable_listeners_controller.rb', line 15 def recent listeners = PlayableListener.recent params render json: listeners end |