Module: MatchMate
- Defined in:
- lib/match-mate/address.rb,
lib/match-mate/version.rb,
lib/match-mate/configuration.rb,
lib/match-mate/address_matcher.rb,
lib/match-mate/address_match_list.rb
Defined Under Namespace
Classes: Address, AddressMatchList, AddressMatchListItem, AddressMatcher, Configuration
Constant Summary
collapse
- VERSION =
'0.0.3'
- DEFAULTS =
{
languages: ['en'],
address_threshold: 80,
address_weights: {
road: {
weight: 30,
threshold: 80
},
unit: {
weight: 2,
threshold: 80
},
postcode: {
weight: 30,
threshold: 100
},
city: {
weight: 8,
threshold: 80
},
house_number: {
weight: 30,
threshold: 100
}
}
}.freeze
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
33
34
35
|
# File 'lib/match-mate/configuration.rb', line 33
def self.config
@config ||= Configuration.new
end
|
29
30
31
|
# File 'lib/match-mate/configuration.rb', line 29
def self.configure
yield config
end
|