All updates

Ruby SDK

addresszen is our Ruby SDK for the AddressZen API. It has one method for every API operation, has no runtime dependencies and runs on Ruby 3.3 or later.

Details

  • Every operation: Address verification, autocomplete, place search, email and phone validation, plus key, licensee and configuration management
  • No dependencies: Requests go through Net::HTTP and the standard library's JSON. Pass your own transport to use another HTTP client
  • Typed responses: Every response is an object generated from the OpenAPI spec, with one reader per field. A verification returns UsaVerifyMatch when the address is found, so one is_a? check tells you whether it matched
  • RBS signatures: The gem ships a signature for every method and reader, for Steep, Ruby LSP and other tools that read RBS
  • Clear errors: An HTTP error raises AddressZen::ApiError with the HTTP status and the API's error code and message. A failed connection raises TransportError
  • No hidden retries: A billable lookup repeats only when your code repeats it
  • Agent skill: npx skills add addresszen/skills gives coding agents the azn-ruby-sdk skill

Install with gem install addresszen, then start with the Ruby SDK documentation.