Class: Kamigo::EventProcessors::DefaultMessageProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/kamigo/event_processors/default_message_processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#form_authenticity_tokenObject

Returns the value of attribute form_authenticity_token.



5
6
7
# File 'lib/kamigo/event_processors/default_message_processor.rb', line 5

def form_authenticity_token
  @form_authenticity_token
end

#requestObject

Returns the value of attribute request.



4
5
6
# File 'lib/kamigo/event_processors/default_message_processor.rb', line 4

def request
  @request
end

Instance Method Details

#process(event) ⇒ Object



7
8
9
10
11
12
# File 'lib/kamigo/event_processors/default_message_processor.rb', line 7

def process(event)
  if event.platform_type == "line"
    return nil if Kamigo.line_default_message.nil?
    return Kamigo.line_default_message
  end
end