Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ats-sdk

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ats-sdk

  • 1.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Ruby SDK for Entera's Activity Tracking System

The ATS SDK for Ruby is a convenient way to create analytics Events and publish them to an SNS topic

Getting Started

Installation

The ATS SDK is available from RubyGems. Add the following dependency to your Gemfile:

gem 'ats-sdk'

Configuration

The ATS SDK uses the credentials and region from your AWS SDK configuration.

Rails

To use in a Rails application, we recommend creating an initializer under the config/initializers directory in order to bootstrap the ATS object. There you will configure the ATS SDK with your SNS topic:

# config/initializers/ats.rb
ATS.configure do |config|
  config.topic = 'arn:aws:sns:us-east-1:123456789012:my-topic'
end

Quick Example

Create and publish an Event

event = {
  subject: {
    type: 'User',
    key: 'fm-12iubg9uhaf82f'
  },
  verb: 'edit',
  direct_object: {
    type: 'Opportunity',
    key: 'fe8f3a65-13ed-45b7-8ebf-45c24d321023'
  },
  context: {
    field: 'broker_signature',
    previous_value: 'Robert Salmos',
    current_value: 'Robert Salmons'
  }
}
ATS::Event.create(event)

FAQs

Package last updated on 02 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc