Module: EpoOps

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/version.rb,
lib/epo_ops/register.rb,
lib/epo_ops/factories.rb,
lib/epo_ops/rate_limit.rb,
lib/epo_ops/token_store.rb,
lib/epo_ops/ipc_class_util.rb,
lib/epo_ops/name_and_address.rb,
lib/epo_ops/token_store/redis.rb,
lib/epo_ops/patent_application.rb,
lib/epo_ops/ipc_class_hierarchy.rb,
lib/epo_ops/search_query_builder.rb,
lib/epo_ops/register_search_result.rb,
lib/epo_ops/ipc_class_hierarchy_loader.rb,
lib/epo_ops/factories/name_and_address_factory.rb,
lib/epo_ops/factories/patent_application_factory.rb,
lib/epo_ops/factories/register_search_result_factory.rb

Defined Under Namespace

Modules: Factories Classes: Client, Configuration, Error, IpcClassHierarchy, IpcClassHierarchyLoader, IpcClassUtil, Limits, Logger, NameAndAddress, PatentApplication, RateLimit, Register, RegisterSearchResult, SearchQueryBuilder, TokenStore, Util

Constant Summary collapse

VERSION =
'0.3.0'.freeze

Class Method Summary collapse

Class Method Details

.configConfiguration

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

Returns:



28
29
30
# File 'lib/epo_ops.rb', line 28

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

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

Configure authentication method and credentials

Examples:

EpoOps.configure do |conf|
  conf.consumer_key = "foo"
  conf.consumer_secret = "bar"
  conf.token_store = EpoOps::TokenStore::Redis # (defaults to EpoOps::TokenStore)
  conf.authentication :oauth # or :plain (defaults to :plain)
end

Yield Parameters:



22
23
24
# File 'lib/epo_ops.rb', line 22

def self.configure
  yield(config)
end