module Europeana::API

Interface to Europeana's RESTful API(s)

Sets the gem version (not the API version)

Constants

VERSION

Attributes

key[RW]

The Europeana API key, required for authentication

@return [String]

logger[W]

@return [Logger]

url[RW]

The API's base URL

@return [String]

Public Class Methods

annotation() click to toggle source
# File lib/europeana/api.rb, line 67
def annotation
  Annotation
end
configuration() click to toggle source
# File lib/europeana/api.rb, line 49
def configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/europeana/api.rb, line 57
def configure
  yield(configuration)
end
entity() click to toggle source
# File lib/europeana/api.rb, line 75
def entity
  Entity
end
in_parallel() { |queue| ... } click to toggle source
# File lib/europeana/api.rb, line 61
def in_parallel(&block)
  client = Client.new
  yield client.queue
  client.queue.run
end
logger() click to toggle source
# File lib/europeana/api.rb, line 53
def logger
  @logger ||= defined?(Rails) && Rails.logger ? Rails.logger : Logger.new(STDOUT)
end
record() click to toggle source
# File lib/europeana/api.rb, line 71
def record
  Record
end