Module: ServiceController::RestServiceUrls

Extended by:
ActiveSupport::Concern
Defined in:
app/concerns/service_controller/rest_service_urls.rb

Instance Method Summary collapse

Instance Method Details

#call_service_pathObject



18
19
20
# File 'app/concerns/service_controller/rest_service_urls.rb', line 18

def call_service_path
  resource_router.send(:url_for, { action: :call, only_path: true })
end

#collection_pathObject



10
11
12
# File 'app/concerns/service_controller/rest_service_urls.rb', line 10

def collection_path
  resource_router.send(:url_for, { action: :index, only_path: true })
end

#invoke_service_pathObject



14
15
16
# File 'app/concerns/service_controller/rest_service_urls.rb', line 14

def invoke_service_path
  resource_router.send(:url_for, { action: :invoke, only_path: true })
end

#resource_routerObject



22
23
24
# File 'app/concerns/service_controller/rest_service_urls.rb', line 22

def resource_router
  self
end