class Europeana::Errors::MissingAPIKeyError

Raised if API requests are attempted without the API key having been set.

Public Class Methods

new(msg = nil) click to toggle source
Calls superclass method
# File lib/europeana/errors.rb, line 9
       def initialize(msg = nil)
        msg ||= <<-MSG
Missing API key.

The Europeana API key has not been set.

Sign up for an API key at: http://labs.europeana.eu/api/registration/

Set the key with:

  Europeana.api_key = "xyz"
        MSG
        super(msg)
       end