Module: ToNetMeApi

Extended by:
Configuration
Defined in:
lib/to_net_me_api.rb,
lib/to_net_me_api/api.rb,
lib/to_net_me_api/error.rb,
lib/to_net_me_api/client.rb,
lib/to_net_me_api/method.rb,
lib/to_net_me_api/result.rb,
lib/to_net_me_api/version.rb,
lib/to_net_me_api/resolver.rb,
lib/to_net_me_api/namespace.rb,
lib/to_net_me_api/resolvable.rb,
lib/to_net_me_api/configuration.rb

Overview

Main module.

Defined Under Namespace

Modules: API, Configuration, Resolvable, Resolver, Result Classes: Client, Error, Method, Namespace

Constant Summary collapse

VERSION =

Library version.

'0.7.1'

Constants included from Configuration

Configuration::DAFAULT_API_ADDRESS, Configuration::DEFAULT_HTTP_VERB, Configuration::OPTION_NAMES

Class Method Summary collapse

Methods included from Configuration

configure, reset, set_api_core, set_http_verb

Class Method Details

.register_aliasObject

Creates a short alias ‘TNM` for `ToNetMeApi` module.



24
25
26
# File 'lib/to_net_me_api.rb', line 24

def register_alias
  Object.const_set(:TNM, ToNetMeApi)
end

.unregister_aliasObject

Removes the ‘TNM` alias.



29
30
31
# File 'lib/to_net_me_api.rb', line 29

def unregister_alias
  Object.send(:remove_const, :TNM) if defined?(TNM)
end