Class: ExotelApi::StartController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/exotel_api/start_controller.rb

Direct Known Subclasses

CallController

Instance Method Summary collapse

Instance Method Details

#directionObject



4
5
6
7
8
9
10
# File 'app/controllers/exotel_api/start_controller.rb', line 4

def direction
  if params[:Direction] == 'incoming'
    eval(ExotelApi.inbound_query)
  else
    find_call
  end
end