In Files

Namespace

Methods

Class/Module Index [+]

Quicksearch

Razorback

Ruby Library for Razorback 7/14/2011

Constants

FLAG_BAD
FLAG_GOOD
HIGH

ALERT VALUES

LOW
MEDIUM
NO_FLAGS

VERDICT VALUES

Public Class Methods

register(id, type, *types) click to toggle source
# File lib/razorback.rb, line 11
def Razorback.register(id, type, *types)
    puts "<?xml version=\"1.0\"?>"
    puts "<razorback>\n\t<registration>"
    puts "\t\t<nugget_id>#{id}</nugget_id>"
    puts "\t\t<application_type>#{type}</application_type>"
    puts "\t\t<data_types>"
    types.each{|i| puts "\t\t\t<data_type>#{i}</data_type>"}
    puts "\t\t</data_types>"
    puts "\t</registration>\n</razorback>"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.