Class: LineController

Inherits:
ApplicationController
  • Object
show all
Includes:
ReverseRoute
Defined in:
app/controllers/line_controller.rb

Instance Method Summary collapse

Methods included from ReverseRoute

#reserve_route

Instance Method Details

#entryObject



7
8
9
10
11
12
13
14
# File 'app/controllers/line_controller.rb', line 7

def entry
  parser = Kamigo::EventParsers::LineEventParser.new
  events = parser.parse_events(request)
  events.each do |event|
    process_event(event)
  end
  head :ok
end