Install
The Poli Page Ruby SDK ships as poli-page on RubyGems. The gem’s one runtime dependency is base64 (a bundled gem since Ruby 3.4, used to decode thumbnail data); everything else is the Ruby stdlib (net/http, json, uri, securerandom, logger, openssl). It requires Ruby 3.2 or later.
Install with Bundler
Section titled “Install with Bundler”Add to your Gemfile:
gem "poli-page"Then run:
bundle installInstall with rubygems
Section titled “Install with rubygems”gem install poli-pageRuby version
Section titled “Ruby version”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.
Example
Section titled “Example”require "poli_page"
client = PoliPage::Client.new(api_key: ENV.fetch("POLI_PAGE_API_KEY"))