class MatchMate::AddressMatchListItem
Attributes
address[R]
Public Class Methods
new(address_object_or_string, other_address)
click to toggle source
# File lib/match-mate/address_match_list.rb, line 25 def initialize(address_object_or_string, other_address) # Accepts any address object that responds to a to_s method @address = address_object_or_string @other_address = other_address end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/match-mate/address_match_list.rb, line 35 def <=>(other) other.score <=> score end
matcher()
click to toggle source
# File lib/match-mate/address_match_list.rb, line 31 def matcher @matcher ||= AddressMatcher.new(@address, @other_address) end