NAME SeeAlso::Response - Open Search Suggestion Response

DESCRIPTION

This class models an OpenSearch Suggestions Response.

METHODS

new ( [ $query [, $completions, $descriptions, $urls ] )

Creates a new SeeAlso::Response object (this is the same as an OpenSearch Suggestions Response object). If the passed query parameter is an instance of SeeAlso::Identifier, the return of its normalized method is used.

add ( $completion [, $description [, $url ] ] )

Add an item to the result set. All parameters must be strings.

size

Get the number of entries in this response.

hasQuery

Returns whether a non-empty query has been provided.

toJSON ( [ $callback ] )

Return the response in JSON format and a non-mandatory callback wrapped around.