Portus Version 2012-12-17
 —  Tutorials  —

Accessing a Portus Resource from a Ruby program

Ruby ( downloadable here) is an Open Source object oriented language with a very simple, yet powerful SOAP interface.


Running a Ruby program

Ruby comes with a very powerful editor, SciTE, which not only allows editing, but also compiling & execution of programs.

This is an example of a complete Ruby program listing all Employees with personnel-IDs starting with 50005*, using the 'adabas_EmployeesMini' Resource that comes with the sample Portus configuration.

graphics/ruby01.png

When running this program, by either pressing the F5 key, or selecting Tools->Go from the SciTE menu, an output window will be attached to the editing window, and show the result of the Ruby query against Portus

graphics/ruby02.png

Top of page