Skip to content

Commit

Permalink
Lookup class/module does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
waleo committed Jun 30, 2022
1 parent 11670e3 commit 680836a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/us_street_single_address_example.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require 'smartystreets_ruby_sdk/static_credentials'
require 'smartystreets_ruby_sdk/client_builder'
require 'smartystreets_ruby_sdk/us_street/lookup'
require 'smartystreets_ruby_sdk/us_street/match_type'

class USStreetSingleAddressExample
def run
Expand Down Expand Up @@ -36,7 +37,8 @@ def run
lookup.state = 'CA'
lookup.zipcode = '21229'
lookup.candidates = 3
lookup.match = Lookup.INVALID # "invalid" is the most permissive match,
lookup.match = SmartyStreets::USStreet::MatchType::INVALID
# "invalid" is the most permissive match,
# this will always return at least one result even if the address is invalid.
# Refer to the documentation for additional Match Strategy options.

Expand Down

0 comments on commit 680836a

Please sign in to comment.