Skip to content

Install

The Poli Page Ruby SDK ships as poli-page on RubyGems. The gem has zero runtime dependencies — only the Ruby stdlib (net/http, json, uri, securerandom, logger, openssl). It requires Ruby 3.2 or later.

Add to your Gemfile:

gem "poli-page"

Then run:

Terminal window
bundle install
Terminal window
gem install poli-page

The SDK targets Ruby 3.2 and tests against Ruby 3.2, 3.3, and 3.4 on Linux and macOS. See runtime support for the full matrix.

require "poli_page"
client = PoliPage::Client.new(api_key: ENV.fetch("POLI_PAGE_API_KEY"))