Module: Oxd

Defined in:
lib/oxd-ruby.rb,
lib/oxd/config.rb,
lib/oxd/errors.rb,
lib/oxd/version.rb,
lib/oxd/uma_commands.rb,
lib/oxd/oxd_connector.rb,
lib/oxd/client_oxd_commands.rb,
lib/generators/oxd/config_generator.rb

Overview

Note:

supports oxd-version 3.1.2

Author:

  • Inderpal Singh

Defined Under Namespace

Modules: Generators Classes: ClientOxdCommands, Configuration, InvalidRequestError, InvalidTicketError, NeedInfoError, OxdConnector, ServerError, UMACommands

Constant Summary collapse

VERSION =

version of the oxd-ruby gem

"1.0.2"

Class Method Summary collapse

Class Method Details

.configObject

Global settings for oxd



21
22
23
# File 'lib/oxd/config.rb', line 21

def self.config
  @config
end

.configure { ... } ⇒ Object

Configures global settings for oxd

Examples:

Oxd.configure do |config|
  config.oxd_host_ip = '127.0.0.1'
end

Yields:

  • config



13
14
15
16
17
18
# File 'lib/oxd/config.rb', line 13

def self.configure(&block)
  @config ||= Oxd::Configuration.new
  if block_given?
    yield(@config)
  end
end