Class: BugBunny::Controller

Inherits:
Object
  • Object
show all
Defined in:
lib/bug_bunny/controller.rb

Class Method Summary collapse

Class Method Details

.exec_action(message) ⇒ Object



7
8
9
# File 'lib/bug_bunny/controller.rb', line 7

def self.exec_action(message)
  send(message.service_action, message)
end

.health_check(_message) ⇒ Object



3
4
5
# File 'lib/bug_bunny/controller.rb', line 3

def self.health_check(_message)
  { status: :success, body: {} }
end

.method_missing(name, message, *args, &block) ⇒ Object



11
12
13
14
# File 'lib/bug_bunny/controller.rb', line 11

def self.method_missing(name, message, *args, &block)
  Session.message = message
  message.build_message(reply_to: message.reply_to).server_no_action!
end