Skip to content
Feralin

Developers

Ruby / Rails: quickstart

Install and first-use steps for sending events to Feralin with Ruby / Rails. Code samples come from the SDK's own README and statuses from the capability record.

Install

feralin 0.1.0 is published on RubyGems; install it with your package manager using the command below.

cd sdks/ruby
gem build feralin.gemspec
gem install --local feralin-0.1.0.gem

First use

require "feralin"

client = Feralin::Client.new(
  ENV.fetch("FERALIN_PROJECT_KEY"),   # yalnız pk_ kabul edilir, sk_ reddedilir
  "https://collect.example.com",
  consent: Feralin::Consent.new(analytics: true)
)

event = client.track("order_completed", { order_id: "ord_1", amount: 249.9 }, user_id: "user_42")
result = client.flush                 # fırlatmaz; sonuç result.error içinde
client.close                          # kalanı en çok 5 sn içinde gönderir

Code samples are taken as they are from sdks/ruby/README.md; comments inside may be in Turkish. You create the project key in the dashboard.

Capabilities

Ruby / Rails capability status
CapabilityStatus
Event sendingSupported
Batch sendingPartial
Consent handlingSupported
IdentityPartial
AttributionNot applicable
Deep linksNot applicable
RevenuePartial
Error capturePartial
Session replayNot applicable
TracingPlanned

Verification chain

Ruby / Rails verification chain
LinkStatus
SourcePassed
BuildPassed
TestPassed
Registry publicationPassed
Clean installPassed
Event receiptPassed
DocumentationPassed
Super Admin proofNot started

Passed means local evidence: source, build and tests ran. Registry publication and Super Admin proof are separate links; the SDK is not called ready until each has passed.