Project

argus-ruby

0.0
The project is in a healthy, maintained state
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.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

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

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