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.gemFirst 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önderirCode 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
| Capability | Status |
|---|---|
| Event sending | Supported |
| Batch sending | Partial |
| Consent handling | Supported |
| Identity | Partial |
| Attribution | Not applicable |
| Deep links | Not applicable |
| Revenue | Partial |
| Error capture | Partial |
| Session replay | Not applicable |
| Tracing | Planned |
Verification chain
| Link | Status |
|---|---|
| Source | Passed |
| Build | Passed |
| Test | Passed |
| Registry publication | Passed |
| Clean install | Passed |
| Event receipt | Passed |
| Documentation | Passed |
| Super Admin proof | Not 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.