Module: SwissMatch::Directories
- Defined in:
- lib/swissmatch/directories.rb,
lib/swissmatch/directories/address.rb,
lib/swissmatch/directories/service.rb,
lib/swissmatch/directories/version.rb,
lib/swissmatch/directories/telsearch.rb
Overview
Query address data from swiss online directory providers.
Defined Under Namespace
Classes: Address, Service, TelSearch
Constant Summary collapse
- Version =
The version of the swissmatch-directories gem.
Gem::Version.new("0.0.1")
Class Attribute Summary collapse
-
.services ⇒ Hash
readonly
The available back-ends.
Class Method Summary collapse
-
.create(name, options) ⇒ SwissMatch::Directories::Service
A directory service.
-
.service(name) ⇒ Class
A SwissMatch::Directories::Service compatible service class.
Class Attribute Details
.services ⇒ Hash (readonly)
Returns The available back-ends.
42 43 44 |
# File 'lib/swissmatch/directories.rb', line 42 def services @services end |
Class Method Details
.create(name, options) ⇒ SwissMatch::Directories::Service
Returns A directory service.
51 52 53 |
# File 'lib/swissmatch/directories.rb', line 51 def self.create(name, ) Service.new(name, ) end |
.service(name) ⇒ Class
Returns A SwissMatch::Directories::Service compatible service class.
46 47 48 |
# File 'lib/swissmatch/directories.rb', line 46 def self.service(name) services[name] end |