Module: Epo::Ops

Defined in:
lib/epo/ops.rb,
lib/epo/ops/util.rb,
lib/epo/ops/error.rb,
lib/epo/ops/client.rb,
lib/epo/ops/limits.rb,
lib/epo/ops/logger.rb,
lib/epo/ops/address.rb,
lib/epo/ops/version.rb,
lib/epo/ops/register.rb,
lib/epo/ops/rate_limit.rb,
lib/epo/ops/token_store.rb,
lib/epo/ops/token_store/redis.rb,
lib/epo/ops/search_query_builder.rb,
lib/epo/ops/bibliographic_document.rb

Defined Under Namespace

Classes: Address, BibliographicDocument, Client, Configuration, Error, Limits, Logger, RateLimit, Register, SearchQueryBuilder, TokenStore, Util

Constant Summary collapse

VERSION =
'0.1.6'.freeze
API_VERSION =
'3.2'.freeze

Class Method Summary collapse

Class Method Details

.configConfiguration

The Configuration used. You may want to call #configure first.

Returns:



23
24
25
# File 'lib/epo/ops.rb', line 23

def self.config
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Configure your OAuth credentials to use with this gem. Optional parameter: conf.token_store (defaults to TokenStore)

Examples:

Epo:Ops.configure do |conf|
  conf.consumer_key = "foo"
  conf.consumer_secret = "bar"
end

Yield Parameters:



17
18
19
# File 'lib/epo/ops.rb', line 17

def self.configure
  yield(config)
end