Module: Strelka::App::Metadata

Extended by:
Plugin
Defined in:
lib/strelka/app/metadata.rb

Overview

A Strelka plugin for setting up requests to be able to carry Thingfish metadata with it.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(object) ⇒ Object

Extension callback – extend the HTTPRequest classes with Metadata support when this plugin is loaded.



23
24
25
26
27
# File 'lib/strelka/app/metadata.rb', line 23

def self::included( object )
	self.log.debug "Extending Request with Metadata mixins"
	Strelka::HTTPRequest.class_eval { include Strelka::HTTPRequest::Metadata }
	super
end

Instance Method Details

#handle_request(request) ⇒ Object

Start content-negotiation when the response has returned.



31
32
33
34
# File 'lib/strelka/app/metadata.rb', line 31

def handle_request( request )
	self.log.debug "[:metadata] Attaching Thingfish metadata to request."
	super
end