Skip to content

Instantly share code, notes, and snippets.

require 'rest-client'
class Reports
def initialize(host, args={})
@host = host
@username = args[:username] || 'exampleuser'
@password = args[:password] || 'examplepass'
@foreman_host = args[:foreman_host] || 'http://foreman.example.com'
end