nsca-client/lib/nsca/client/host.rb
2012-12-07 16:37:23 -02:00

17 lines
271 B
Ruby

require 'socket'
module NSCA
module Client
class Host
attr_reader :hostname
def initialize(options)
@hostname = options[:hostname]
end
def self.current
Host.new(:hostname => Socket.gethostname)
end
end
end
end