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

argus-ruby

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

argus-ruby

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

ARGUS Ruby Client

This is the official Ruby library for the ARGUS Engine, this library helps Ruby developers and applications seamlessly integrate to the ARGUS Engine, authentication and event listening.

Install via Gem

    gem install argus-ruby

You can use Bundler to add Argus Ruby to your project

    bundle add 'argus-ruby'

Usage -


   require 'argus'

Have a class to define the fucntion to be called when you receive an Argus Event

    class Testsub
        def on_event(argus_event)
            puts "#{argus_event.Action}"
            puts "#{argus_event.ActionDescription}"
            puts "#{argus_event.Name}"
            puts "#{argus_event.Timestamp}"
        end
    end

Finally use argus like so,

    subscriber = Testsub.new

    argus = Argus.new("testuser", "testpassword") // Optionally you can pass the host and port, and auth credentials inclusive.

    argus.subscribe(subscriber, :on_event)
    argus.connect

FAQs

Package last updated on 24 Mar 2024

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