Class: Kamigo::EventProcessors::DefaultPathProcessor
- Inherits:
-
Object
- Object
- Kamigo::EventProcessors::DefaultPathProcessor
- Defined in:
- lib/kamigo/event_processors/default_path_processor.rb
Instance Attribute Summary collapse
-
#form_authenticity_token ⇒ Object
Returns the value of attribute form_authenticity_token.
-
#request ⇒ Object
Returns the value of attribute request.
Instance Method Summary collapse
Instance Attribute Details
#form_authenticity_token ⇒ Object
Returns the value of attribute form_authenticity_token.
5 6 7 |
# File 'lib/kamigo/event_processors/default_path_processor.rb', line 5 def form_authenticity_token @form_authenticity_token end |
#request ⇒ Object
Returns the value of attribute request.
4 5 6 |
# File 'lib/kamigo/event_processors/default_path_processor.rb', line 4 def request @request end |
Instance Method Details
#process(event) ⇒ Object
7 8 9 10 |
# File 'lib/kamigo/event_processors/default_path_processor.rb', line 7 def process(event) return nil if Kamigo.default_path.nil? reserve_route(URI::Parser.new.escape(Kamigo.default_path), http_method: Kamigo.default_http_method, request_params: event.platform_params, format: :line) end |