blob: 6ff4ed8dd276d21ad4c015f73b5219e6877b080f (
plain) (
tree)
|
|
module AbstractController
class Base
attr_internal :response_body
attr_internal :response_obj
attr_internal :action_name
def self.process(action)
new.process(action)
end
def initialize
self.response_obj = {}
end
def process(action_name)
@_action_name = action_name
send(action_name)
self.response_obj[:body] = self.response_body
self
end
end
end
|