Class: Resource
- Inherits:
-
Object
- Object
- Resource
- Defined in:
- lib/wirispluginengine/integration/resource.rb
Instance Method Summary collapse
Instance Method Details
#dispatch(response, provider, pb) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/wirispluginengine/integration/resource.rb', line 2 def dispatch(response, provider, pb) resource = provider.getRequiredParameter('resourcefile'); resourceLoader = pb.newResourceLoader() response.content_type = resourceLoader.getContentType(resource) return resourceLoader.getContent(resource) end |