Project

sampl

0.0
No commit activity in last 3 years
No release in over 3 years
Report tracking events from a Ruby on Rails server.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 0.13
 Project Readme

Sampl.rb

Report tracking events from a Ruby on Rails server.

Sampl.rb is a thin wrapper around HTTParty that implements PSIORI's REST API. It tries to adapt and rely on the same concepts and principles that HTTParty uses, so users already familiar with HTTParty will have an easy start with Sampl.rb.

Usage

Sampl's usage is very similar to that of HTTParty, you might already be familiar with. There are two options:

A) calling the static methods of the Sampl module:

Sampl.track('rb_test_event', 'test', { app_token: 'your-unique-app-token', debug: true })

B) inheriting the module (recommended) in a custom class and implementing instance methods