Module: Lunetas::Candy
- Defined in:
- lib/lunetas/candy.rb
Overview
This module should be included in any resource that should be exposed with an API. Then the method matches should be called in order to register the path for this resource.
Defined Under Namespace
Modules: Initialization, MethodStrategy, RequestWrapper, ResponseHandler
Class Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/lunetas/candy.rb', line 21 def self.included(receiver) receiver.send :include, Initialization::InstanceMethods receiver.send :extend, Initialization::ClassMethods receiver.send :include, MethodStrategy::InstanceMethods receiver.send :include, RequestWrapper::InstanceMethods receiver.send :include, ResponseHandler::InstanceMethods receiver.send :extend, ResponseHandler::ClassMethods end |