Module: Core::Service::EndpointHandling
- Included in:
- Request
- Defined in:
- app/api/core/service/endpoint_handling.rb
Overview
rubocop:todo Style/Documentation
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
2 3 4 5 6 |
# File 'app/api/core/service/endpoint_handling.rb', line 2 def self.included(base) base.class_eval do attr_reader :endpoint end end |
Instance Method Details
#instance(action, endpoint) ⇒ Object
8 9 10 11 |
# File 'app/api/core/service/endpoint_handling.rb', line 8 def instance(action, endpoint) @endpoint = endpoint @endpoint.instance_handler.send(action, self, path) end |
#model(action, endpoint) ⇒ Object
13 14 15 16 |
# File 'app/api/core/service/endpoint_handling.rb', line 13 def model(action, endpoint) @endpoint = endpoint @endpoint.model_handler.send(action, self, path) end |