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.

Examples:

Usage

require 'swissmatch/directories'
directories = SwissMatch::Directories.create(:telsearch, api_token: your_token)
params      = {first_name: 'Stefan', last_name: 'Rusterholz'}
directories.addresses(params).each do |address|
  puts address,""
end

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

Class Method Summary collapse

Class Attribute Details

.servicesHash (readonly)


42
43
44
# File 'lib/swissmatch/directories.rb', line 42

def services
  @services
end

Class Method Details

.create(name, options) ⇒ SwissMatch::Directories::Service


51
52
53
# File 'lib/swissmatch/directories.rb', line 51

def self.create(name, options)
  Service.new(name, options)
end

.service(name) ⇒ Class


46
47
48
# File 'lib/swissmatch/directories.rb', line 46

def self.service(name)
  services[name]
end